<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: static-analysis</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/static-analysis.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2020-08-07T20:50:13+00:00</updated><author><name>Simon Willison</name></author><entry><title>Pysa: An open source static analysis tool to detect and prevent security issues in Python code</title><link href="https://simonwillison.net/2020/Aug/7/pysa/" rel="alternate"/><published>2020-08-07T20:50:13+00:00</published><updated>2020-08-07T20:50:13+00:00</updated><id>https://simonwillison.net/2020/Aug/7/pysa/</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://engineering.fb.com/security/pysa/"&gt;Pysa: An open source static analysis tool to detect and prevent security issues in Python code&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Interesting new static analysis tool for auditing Python for security vulnerabilities—things like SQL injection and os.execute() calls. Built by Facebook and tested extensively on Instagram, a multi-million line Django application.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://news.ycombinator.com/item?id=24083432"&gt;Hacker News&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/django"&gt;django&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/facebook"&gt;facebook&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/security"&gt;security&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/sql-injection"&gt;sql-injection&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/static-analysis"&gt;static-analysis&lt;/a&gt;&lt;/p&gt;



</summary><category term="django"/><category term="facebook"/><category term="python"/><category term="security"/><category term="sql-injection"/><category term="static-analysis"/></entry><entry><title>A hands-on introduction to static code analysis</title><link href="https://simonwillison.net/2020/May/5/hands-introduction-static-code-analysis/" rel="alternate"/><published>2020-05-05T00:15:37+00:00</published><updated>2020-05-05T00:15:37+00:00</updated><id>https://simonwillison.net/2020/May/5/hands-introduction-static-code-analysis/</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://deepsource.io/blog/introduction-static-code-analysis/"&gt;A hands-on introduction to static code analysis&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Useful tutorial on using the Python standard library tokenize and ast modules to find specific patterns in Python source code, using the visitor pattern.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/compilers"&gt;compilers&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/static-analysis"&gt;static-analysis&lt;/a&gt;&lt;/p&gt;



</summary><category term="compilers"/><category term="python"/><category term="static-analysis"/></entry><entry><title>3 and 1/2 minutes to sort a Terabyte, and a look at Hadoop's code structure</title><link href="https://simonwillison.net/2008/Jul/7/bill/" rel="alternate"/><published>2008-07-07T14:15:23+00:00</published><updated>2008-07-07T14:15:23+00:00</updated><id>https://simonwillison.net/2008/Jul/7/bill/</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.dehora.net/journal/2008/07/06/3-12-minutes-to-sort-a-terabyte-hadoops-code-structure/"&gt;3 and 1/2 minutes to sort a Terabyte, and a look at Hadoop&amp;#x27;s code structure&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Bill de hÓra uses some clever static analysis tools to explore Hadoop’s 100,000+ lines of code.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/bill-de-hora"&gt;bill-de-hora&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/hadoop"&gt;hadoop&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/java"&gt;java&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/static-analysis"&gt;static-analysis&lt;/a&gt;&lt;/p&gt;



</summary><category term="bill-de-hora"/><category term="hadoop"/><category term="java"/><category term="static-analysis"/></entry></feed>