Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pylint message template overridden by linter #382

Closed
@AWPelican

Description

@AWPelican

Environment 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions