diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-23 20:11:55 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-23 20:11:55 +0300 |
commit | ed9464cf8e04f762d60d0d4bca28538007b62023 (patch) | |
tree | e626341fa97893eeeec99c962c9cfc1371c777e4 /ChangeLog | |
parent | 2993179166fd57ed8322cde31c3cf0b785f094a6 (diff) | |
download | pylint-ed9464cf8e04f762d60d0d4bca28538007b62023.tar.gz |
Add a new warning, 'using-constant-test'.
This new warning is emitted when a conditional statement (If, IfExp) uses a test
which is always constant, such as numbers, classes, functions etc.
This is most likely an error from the user's part. Closes issue #524.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -140,6 +140,11 @@ ChangeLog for Pylint * Don't emit undefined-variable if the node is guarded by a NameError, Exception or bare except clause. + + * Add a new warning, 'using-constant-test', which is emitted when a conditional + statement (If, IfExp) uses a test which is always constant, such as numbers, + classes, functions etc. This is most likely an error from the user's part. + Closes issue #524. 2015-03-14 -- 1.4.3 |