[Ironpython-users] static analysis tool

Dino Viehland dinov at microsoft.com
Wed Oct 1 05:12:13 CEST 2014


Do you want to create your own static analysis rules or just use an existing checker?  If it's the latter you could use PTVS's analyzer (I can point you to some example code if so).  If it's the former we eventually want to add it to PTVS and when we do that we should pick up IronPython support for free.  We'd also accept it as a contribution ;)

From: Ironpython-users [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Joseph Mortensen
Sent: Tuesday, September 30, 2014 10:29 AM
To: ironpython-users at python.org
Subject: [Ironpython-users] static analysis tool

I'm trying to static analysis on python code that has very heavy usage of .NET libraries. I've seen pyflakes, pylint, and pychecker as the main tools to do this stuff in python, but I haven't gotten any of them working properly with IronPython in windows.

Are there any recommendations for something that could analyze:

import clr
clr.AddReference("System")
from System import String
stuff = String("my string")
print stuff
stuff.ThisDoesntExist()

without tripping up on the System and String imports and find that "stuff.ThisDoesntExist()" doesn't actually exist?

Thanks,
Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20141001/a102889f/attachment.html>


More information about the Ironpython-users mailing list