Download Pylint Documentation

Document related concepts
no text concepts found
Transcript
Pylint Documentation, Release 1.6.5
• useless-else-on-loop not emited if there is a break in the else clause of inner loop (#117).
• don’t mark input as a bad function when using python3 (#110).
• badly-implemented-container caused several problems in its current implementation. Deactivate it until we have
something better. See #112 for instance.
• Use attribute regexp for properties in python3, as in python2
• Create the PYLINTHOME directory when needed, it might fail and lead to spurious warnings on import of
pylint.config.
• Fix setup.py so that pylint properly install on Windows when using python3
• Various documentation fixes and enhancements
• Fix issue #55 (false-positive trailing-whitespace on Windows)
3.2.21 What’s New in Pylint 1.0.0?
Release date: 2013-08-06
• Add check for the use of ‘exec’ function
• New –msg-template option to control output, deprecating “msvc” and “parseable” output formats as well as
killing –include-ids and –symbols options
• Do not emit [fixme] for every line if the config value ‘notes’ is empty, but [fixme] is enabled.
• Emit warnings about lines exceeding the column limit when those lines are inside multiline docstrings.
• Do not double-check parameter names with the regex for parameters and inline variables.
• Added a new warning missing-final-newline (C0304) for files missing the final newline.
• Methods that are decorated as properties are now treated as attributes for the purposes of name checking.
• Names of derived instance class member are not checked any more.
• Names in global statements are now checked against the regular expression for constants.
• For toplevel name assignment, the class name regex will be used if pylint can detect that value on the right-hand
side is a class (like collections.namedtuple()).
• Simplified invalid-name message
• Added a new warning invalid-encoded-data (W0512) for files that contain data that cannot be decoded with the
specified or default encoding.
• New warning bad-open-mode (W1501) for calls to open (or file) that specify invalid open modes (Original
implementation by Sasha Issayev).
• New warning old-style-class (C1001) for classes that do not have any base class.
• Add new name type ‘class_attribute’ for attributes defined in class scope. By default, allow both const and
variable names.
• New warning trailing-whitespace (C0303) that warns about trailing whitespace.
• Added a new warning unpacking-in-except (W0712) about unpacking exceptions in handlers, which is unsupported in Python 3.
• Add a configuration option for missing-docstring to optionally exempt short functions/methods/classes from the
check.
• Add the type of the offending node to missing-docstring and empty-docstring.
24
Chapter 3. What’s New in Pylint