PyChecker是一个python脚本分析工具,它可以发现python脚本中的bugs,它支持python2.0–2.7。PyChecker可以发现的问题包括:
Noglobalfound(e.g.,usingamodulewithoutimportingit)Passingthewrongnumberofparameterstofunctions/methods/constructorsPassingthewrongnumberofparameterstobuiltinfunctions&methodsUsingformatstringsthatdon'tmatchargumentsUsingclassmethodsandattributesthatdon'texistChangingsignaturewhenoverridingamethodRedefiningafunction/class/methodinthesamescopeUsingavariablebeforesettingitselfisnotthefirstparameterdefinedforamethodUnusedglobalsandlocals(moduleorvariable)Unusedfunction/methodarguments(canignoreself)Nodocstringsinmodules,classes,functions,andmethods点击空白处退出提示
评论