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

Skip to content

Show pylint error name as well as error code #2826

Closed
@Tadaboody

Description

@Tadaboody

Environment data

  • VS Code version: 1.28.0
    431ef9da3cf88a7e164f9d33bf62695e07c6c2a9
    x64
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: System Version: macOS 10.13.6 (17G65)
  • Python version (& distribution if applicable, e.g. Anaconda): CPython 3.6.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: pylint==1.9.2

Actual behavior

Pylint encounters a warning/error
Message includes error code, but not error name
image

Expected behavior

Error message includes error name, like when using vim-ALE
image
or pylint
image

This feature is important because if I want to disable an error code, I much prefer the descriptive

def foo(a): #pylint: disable=blacklisted-name,unused-argument
    return

over the ambiguous

def foo(a): #pylint: disable=C0102,W0613
    return

Steps to reproduce:

  1. Configure vscode with pylint
  2. Create a python file with some linter warning like
def foo(a):
    return
  1. View pylint warnings

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Your code has been rated at 0.00/10 (previous run: 10.00/10, -10.00)

##########Linting Output - pylint##########
************* Module stub
1,0,convention,C0102:Black listed name "foo"
1,8,warning,W0613:Unused argument 'a'

------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions