--------------
1. What is pylint?
Pylint is a tool that checks for errors in python code, tries to enforce a coding standard and looks for bad code smells. This is similar but nevertheless different from what pychecker provides, especially since pychecker explicitly does not bother with coding style. The default coding style used by pylint is close to Guido's style guide. For more information about code smells, refer to Martin Fowler's refactoring book
Pylint will display a number of errors and warnings as it analyzes the code, as well as some statistics about the number of warnings and errors found in different files. If you run pylint twice, it will display the statistics from the previous run together with the ones from the current run, so that you can see if the code has improved or not.
Last but not least, the code is given an overall mark, based on the number an severity of the warnings and errors. This has proven to be very motivating for programmers.作者: moryaden 时间: 2011-01-07 09:26
其实,主要是代码的风格检查,而不是逻辑检查。