python代碼靜態分析工具:PyChecker

jopen 12年前發布 | 26K 次閱讀 Python Python開發

pychecker編寫的Python靜態編譯器,用于在編譯器查找py腳本的錯誤,它支持python2.0 – 2.7。PyChecker可以發現的問題包括:

  • No global found (e.g., using a module without importing it)
  • Passing the wrong number of parameters to functions/methods/constructors
  • Passing the wrong number of parameters to builtin functions & methods
  • Using format strings that don't match arguments
  • Using class methods and attributes that don't exist
  • Changing signature when overriding a method
  • Redefining a function/class/method in the same scope
  • Using a variable before setting it
  • self is not the first parameter defined for a method
  • Unused globals and locals (module or variable)
  • Unused function/method arguments (can ignore self)
  • No doc strings in modules, classes, functions, and methods

項目主頁:http://www.baiduhome.net/lib/view/home/1350706085039

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!