diff options
author | Laura Médioni <laura.medioni@logilab.fr> | 2015-10-26 09:35:59 +0100 |
---|---|---|
committer | Laura Médioni <laura.medioni@logilab.fr> | 2015-10-26 09:35:59 +0100 |
commit | 8d84822d494c32df05ee4b07df08990c3a280d46 (patch) | |
tree | 4c5445f8e72dd73a7d7c7873970f9769a00508d0 /pylint/test/functional/unneeded_not.txt | |
parent | ef8fc191074320d4cd0713352299bc33b18a3dae (diff) | |
download | pylint-git-8d84822d494c32df05ee4b07df08990c3a280d46.tar.gz |
Check for nots too many in comparison expressions
Diffstat (limited to 'pylint/test/functional/unneeded_not.txt')
-rw-r--r-- | pylint/test/functional/unneeded_not.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pylint/test/functional/unneeded_not.txt b/pylint/test/functional/unneeded_not.txt new file mode 100644 index 000000000..83100a413 --- /dev/null +++ b/pylint/test/functional/unneeded_not.txt @@ -0,0 +1,12 @@ +unneeded-not:10:unneeded_not:One not too many in "not not bool_var", should be "bool_var" +unneeded-not:12:unneeded_not:One not too many in "not someint == 1", should be "someint != 1" +unneeded-not:14:unneeded_not:One not too many in "not someint != 1", should be "someint == 1" +unneeded-not:16:unneeded_not:One not too many in "not someint < 1", should be "someint >= 1" +unneeded-not:18:unneeded_not:One not too many in "not someint > 1", should be "someint <= 1" +unneeded-not:20:unneeded_not:One not too many in "not someint <= 1", should be "someint > 1" +unneeded-not:22:unneeded_not:One not too many in "not someint >= 1", should be "someint < 1" +unneeded-not:24:unneeded_not:One not too many in "not not someint", should be "someint" +unneeded-not:26:unneeded_not:One not too many in "not bool_var == True", should be "bool_var != True" +unneeded-not:28:unneeded_not:One not too many in "not bool_var == False", should be "bool_var != False" +unneeded-not:30:unneeded_not:One not too many in "not bool_var != True", should be "bool_var == True" +unneeded-not:32:unneeded_not:One not too many in "not True == True", should be "True != True" |