Pylint message template overridden by linter
See original GitHub issueEnvironment data
VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6.3 OS and version: Fedora 26
Actual behavior
I was trying to set the --msg-template
argument in python.linting.pylintArgs
, but found that there were, surprisingly, no changes in the VS Code linter pop-ups or console output.
Oluwafemi Sule pointed out in his answer to my StackOverflow question that the message template is actually hardcoded into the linter for Pylint.
Expected behavior
I would have expected that passing in a --msg-template
argument would have allowed me to change the format of the Pylint messages in the linter.
As a side note, it appears the Pylint project favors using the message symbol (e.g. ‘trailing-whitespace’) over the message msg_id (e.g. ‘C0303’) that is currently used in Visual Studio Code, per the examples in its documentation its default message template since pylint 1.0, and this FAQ answer.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
We could improve the linter message to include the message symbol (e.g. ‘trailing-whitespace’)
I think it’s a reasonable idea to include the human-readable message since Pylint has been slowly shifting that way itself.