Debian Codegraph @

doc/whatsnew/1/1.1.rst

raw
1 **************************
2 What's New In Pylint 1.1
3 **************************
4
5 Release date: 2013-12-22
6
7 * Add new check for use of :ref:`deprecated-pragma` directives "pylint:disable-msg"
8 or "pylint:enable-msg" which was previously emitted as a regular warn().
9
10 * Avoid false :ref:`used-before-assignment` for except handler defined
11 identifier used on the same line.
12
13 Closes #111
14
15 * Combine 'no-space-after-operator', 'no-space-after-comma' and
16 'no-space-before-operator' into a new warning 'bad-whitespace'.
17
18 * Add a new warning :ref:`superfluous-parens` for unnecessary
19 parentheses after certain keywords.
20
21 * Fix a potential crash in the redefine-in-handler warning
22 if the redefined name is a nested getattr node.
23
24 * Add a new option for the multi-statement warning to
25 allow single-line if statements.
26
27 * Add :ref:`bad-context-manager` error, checking that '__exit__'
28 special method accepts the right number of arguments.
29
30 * Run pylint as a python module 'python -m pylint' (Anatoly Techtonik).
31
32 * Check for non-exception classes inside an except clause.
33
34 * epylint support options to give to pylint after the file to analyze and
35 have basic input validation, patches provided by
36 felipeochoa and Brian Lane.
37
38 Closes BitBucket #53
39 Closes BitBucket #54
40
41 * Added a new warning, :ref:`non-iterator-returned`, for non-iterators
42 returned by '__iter__'.
43
44 * Add new checks for unpacking non-sequences in assignments
45 (:ref:`unpacking-non-sequence`) as well as unbalanced tuple unpacking
46 (:ref:`unbalanced-tuple-unpacking`).
47
48 * :ref:`useless-else-on-loop` not emitted if there is a break in the
49 else clause of inner loop.
50
51 Closes #117
52
53 * don't mark ``input`` as a bad function when using python3.
54
55 Closes #110
56
57 * badly-implemented-container caused several problems in its
58 current implementation. Deactivate it until we have something
59 better.
60
61 Refs #112
62
63 * Use attribute regexp for properties in python3, as in python2
64
65 * Create the ``PYLINTHOME`` directory when needed, it might fail and lead to
66 spurious warnings on import of pylint.config.
67
68 * Fix setup.py so that pylint properly install on Windows when using python3
69
70 * Various documentation fixes and enhancements
71
72 * Fix a false-positive :ref:`trailing-whitespace` on Windows
73
74 Closes #55