summaryrefslogtreecommitdiff
path: root/tests/messages
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-01-02 14:02:36 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-17 21:47:40 +0100
commitf501b87844e08aaf2d1ecce1e494f77ad7762bc7 (patch)
tree8d3cf36a434478680ed0b4f684503e1f97c71897 /tests/messages
parenta20c4de75bcd7ca44fae627c9783e998c79b86b2 (diff)
downloadpylint-git-f501b87844e08aaf2d1ecce1e494f77ad7762bc7.tar.gz
Fix false negative 'use-symbolic-message-instead' and optimize it
use-symbolic-message-instead was not working for message with multiple new names and the function to get the symbol was suboptimal. Also made the solution copy pastable.
Diffstat (limited to 'tests/messages')
-rw-r--r--tests/messages/func_i0011.txt2
-rw-r--r--tests/messages/func_i0012.txt2
-rw-r--r--tests/messages/func_i0020.txt2
-rw-r--r--tests/messages/func_i0022.txt8
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/messages/func_i0011.txt b/tests/messages/func_i0011.txt
index 66d4bfc68..609f20861 100644
--- a/tests/messages/func_i0011.txt
+++ b/tests/messages/func_i0011.txt
@@ -1,3 +1,3 @@
-I: 1: Id 'W0404' is used to disable 'reimported' message emission
+I: 1: 'W0404' is cryptic: use '# pylint: disable=reimported' instead
I: 1: Locally disabling reimported (W0404)
I: 1: Useless suppression of 'reimported'
diff --git a/tests/messages/func_i0012.txt b/tests/messages/func_i0012.txt
index 5ad4cd6c6..205475890 100644
--- a/tests/messages/func_i0012.txt
+++ b/tests/messages/func_i0012.txt
@@ -1 +1 @@
-I: 1: Id 'W0404' is used to enable 'reimported' message emission
+I: 1: 'W0404' is cryptic: use '# pylint: enable=reimported' instead
diff --git a/tests/messages/func_i0020.txt b/tests/messages/func_i0020.txt
index ddd1cb4a6..5ae78a4a9 100644
--- a/tests/messages/func_i0020.txt
+++ b/tests/messages/func_i0020.txt
@@ -1,3 +1,3 @@
-I: 7: Id 'W0612' is used to disable 'unused-variable' message emission
+I: 7: 'W0612' is cryptic: use '# pylint: disable=unused-variable' instead
I: 7: Locally disabling unused-variable (W0612)
I: 8: Suppressed 'unused-variable' (from line 7)
diff --git a/tests/messages/func_i0022.txt b/tests/messages/func_i0022.txt
index 28b7d71c1..0108fb107 100644
--- a/tests/messages/func_i0022.txt
+++ b/tests/messages/func_i0022.txt
@@ -9,13 +9,13 @@ I: 12: Locally disabling invalid-name (C0103)
I: 12: Pragma "disable-msg" is deprecated, use "disable" instead
I: 13: Suppressed 'invalid-name' (from line 12)
I: 14: Pragma "enable-msg" is deprecated, use "enable" instead
-I: 16: Id 'C0103' is used to disable 'invalid-name' message emission
+I: 16: 'C0103' is cryptic: use '# pylint: disable=invalid-name' instead
I: 16: Locally disabling invalid-name (C0103)
I: 16: Pragma "disable-msg" is deprecated, use "disable" instead
I: 17: Suppressed 'invalid-name' (from line 16)
-I: 18: Id 'C0103' is used to enable 'invalid-name' message emission
+I: 18: 'C0103' is cryptic: use '# pylint: enable=invalid-name' instead
I: 18: Pragma "enable-msg" is deprecated, use "enable" instead
-I: 20: Id 'C0103' is used to disable 'invalid-name' message emission
+I: 20: 'C0103' is cryptic: use '# pylint: disable=invalid-name' instead
I: 20: Locally disabling invalid-name (C0103)
I: 21: Suppressed 'invalid-name' (from line 20)
-I: 22: Id 'C0103' is used to enable 'invalid-name' message emission
+I: 22: 'C0103' is cryptic: use '# pylint: enable=invalid-name' instead