Skip to content

Show pylint error name as well as error code #2826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tadaboody opened this issue Oct 9, 2018 · 1 comment
Closed

Show pylint error name as well as error code #2826

Tadaboody opened this issue Oct 9, 2018 · 1 comment

Comments

@Tadaboody
Copy link

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)

@DonJayamanne
Copy link

Duplicate of #382

@DonJayamanne DonJayamanne marked this as a duplicate of #382 Oct 9, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants