diff options
author | Dmitry Pribysh <dmand@yandex.ru> | 2015-10-03 18:27:57 +0300 |
---|---|---|
committer | Dmitry Pribysh <dmand@yandex.ru> | 2015-10-03 18:27:57 +0300 |
commit | f825f7ff1246c403041b8cc1d1ed29443772ef0f (patch) | |
tree | 2470c58f355157261e46f0cbfd15e96736e61a94 /pylint/test/functional/comparisons.txt | |
parent | ccec0df4c7d3e664ea95e18ade40856d230a7152 (diff) | |
download | pylint-comparison-checker.tar.gz |
Add initial version of comparison checkercomparison-checker
It checks for expressions like 'x == True', 'x == False' and 'x == None' and
suggests the correct usage ('x', 'not x', 'x is None').
Diffstat (limited to 'pylint/test/functional/comparisons.txt')
-rw-r--r-- | pylint/test/functional/comparisons.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pylint/test/functional/comparisons.txt b/pylint/test/functional/comparisons.txt new file mode 100644 index 0000000..fd1fa98 --- /dev/null +++ b/pylint/test/functional/comparisons.txt @@ -0,0 +1,5 @@ +singleton-comparison:4::Comparison to None should be 'expr is None' +singleton-comparison:5::Comparison to True should be just 'expr' or 'expr is True' +singleton-comparison:6::Comparison to False should be 'not expr' or 'expr is False' +singleton-comparison:7::Comparison to True should be just 'expr' or 'expr is True' +singleton-comparison:11::Comparison to None should be 'expr is None' |