You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When use-symbolic-message-instead is enabled, Pylint will correctly warn about the usage of non-symbolic ID in pragmas, like here.
# pylint: disable=W0223
This will output I0023: 'W0223' is cryptic: use '# pylint: disable=abstract-method' instead (use-symbolic-message-instead).
But if the category letter of the ID is written in lower case, like here:
# pylint: disable=w0223
Pylint will not output the warning about not using a symbolic message.
Configuration
[MASTER]enable=use-symbolic-message-instead
Command used
pylint test.py
Pylint output
No output.
Expected behavior
Since Pylint does allow lower case in the pragmas that use a numeric ID (e.g. w0223), having use-symbolic-message-instead enabled should also output a message regardless of the case of the ID used in the disable pragma.
Pylint version
pylint 2.10.2
astroid 2.7.3
Python 3.8.10 (default, May 4 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)]
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered:
Bug description
When
use-symbolic-message-instead
is enabled, Pylint will correctly warn about the usage of non-symbolic ID in pragmas, like here.# pylint: disable=W0223
This will output
I0023: 'W0223' is cryptic: use '# pylint: disable=abstract-method' instead (use-symbolic-message-instead)
.But if the category letter of the ID is written in lower case, like here:
# pylint: disable=w0223
Pylint will not output the warning about not using a symbolic message.
Configuration
Command used
Pylint output
No output.
Expected behavior
Since Pylint does allow lower case in the pragmas that use a numeric ID (e.g.
w0223
), havinguse-symbolic-message-instead
enabled should also output a message regardless of the case of the ID used in thedisable
pragma.Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: