diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-06-04 10:41:54 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-06-04 11:13:39 +0200 |
commit | f388437a11cd39350fcd738b6a93c128c2b8d92e (patch) | |
tree | 33c16a6278e75057d688874df81ca14ab8430fe9 /tests/config | |
parent | 90d963058ea1faba53e27b425662efe421b535a4 (diff) | |
download | pylint-git-f388437a11cd39350fcd738b6a93c128c2b8d92e.tar.gz |
[deleted messages] Add an exception for deleted messages in MessageIdStore
Diffstat (limited to 'tests/config')
3 files changed, 23 insertions, 0 deletions
diff --git a/tests/config/functional/ini/pylintrc_with_deleted_message.2.out b/tests/config/functional/ini/pylintrc_with_deleted_message.2.out new file mode 100644 index 000000000..27b7d35be --- /dev/null +++ b/tests/config/functional/ini/pylintrc_with_deleted_message.2.out @@ -0,0 +1,4 @@ +************* Module {abspath} +{relpath}:1:0: E0012: Bad option value for --disable. Don't recognize message buffer-builtin. (bad-option-value) +{relpath}:1:0: E0012: Bad option value for --enable. Don't recognize message useless-option-value. (bad-option-value) +{relpath}:1:0: E0012: Bad option value for --enable. Don't recognize message cmp-builtin. (bad-option-value) diff --git a/tests/config/functional/ini/pylintrc_with_deleted_message.ini b/tests/config/functional/ini/pylintrc_with_deleted_message.ini new file mode 100644 index 000000000..51b821750 --- /dev/null +++ b/tests/config/functional/ini/pylintrc_with_deleted_message.ini @@ -0,0 +1,7 @@ +# Check that we raise an informational when a deleted messages exists in a .pylintrc file +# See https://github.com/PyCQA/pylint/issues/6794 +[messages control] +disable = logging-not-lazy, buffer-builtin +enable = useless-option-value, locally-disabled, cmp-builtin +jobs = 10 +reports = yes diff --git a/tests/config/functional/ini/pylintrc_with_deleted_message.result.json b/tests/config/functional/ini/pylintrc_with_deleted_message.result.json new file mode 100644 index 000000000..b41e71603 --- /dev/null +++ b/tests/config/functional/ini/pylintrc_with_deleted_message.result.json @@ -0,0 +1,12 @@ +{ + "functional_append": { + "disable": ["logging-not-lazy"], + "enable": ["locally-disabled"] + }, + "functional_remove": { + "disable": ["locally-disabled"], + "enable": ["logging-not-lazy"] + }, + "jobs": 10, + "reports": true +} |