a Python Static Analyzer

arie.lakeman at gmail.com arie.lakeman at gmail.com
Sun Dec 15 21:25:18 CET 2013


On Sunday, 15 December 2013 02:36:56 UTC, Chris Rebert  wrote:
> On Sat, Dec 14, 2013 at 5:31 PM, Dan Stromberg <drsalists at gmail.com> wrote:
> 
> > Where does PySonar2 sit in the spectrum from pylint
> 
> > (thorough/pedantic) to pyflakes (relaxed/few-false-positives)?
> 
> >
> 
> > I use pylint and pyflakes a lot, and I've heard that PyChecker sits in
> 
> > between them on this axis.
> 
> 
> 
> My impression is that PyChecker has been abandoned.
> 
> The last commit in its SourceForge CVS repo is from 2008, and `pip
> 
> install PyChecker` fails.
> 
> 
> 
> Cheers,
> 
> Chris

Hi Chris,

I can't comment on the comparative sophistication of PySonar2 to pylint and pyflakes, my experience of those two projects is as code quality tools, whereas I've been using PySonar2 for things along the lines of indexing code at a more semantic level, something I'm satisfied with.

Here's a comment on a reddit post about PySonar a month ago

http://www.reddit.com/comments/1piusr

`
Yin Wang is awesome and his work on programming languages and type inference is super impressive. We've been using his PySonar (v1) to build a global index of Python code and it works far better than we or anyone would have expected, for a dynamic language.
Here are some examples of what PySonar can do:
Finding everywhere a function is used
Python stdlib, sorted by most-used functions
All usages of the Django URL render_to_response function
All usages of the Flask @app.route decorator
This is all done using PySonar v1-based static analysis on Python code. PySonar v2 is even better.
`

I've referred Yin to this google group post.



More information about the Python-list mailing list