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
There's any way to lint the whole project directory instead of only open files (and the errors will be displayed accordingly, error by file in problems view)?
I think it'll be great to have this with Flake8 at least (maybe PyLint is a little slow to lint the whole project after every save).
Thanks 😄
Copied from original issue: DonJayamanne/pythonVSCode#694
I have been searching for the same thing and it seems to be a missing vscode feature. microsoft/vscode-eslint#91 microsoft/vscode#13953
Currently the method of doing this with pylint is just to use the terminal pylint . -E, but it would be nice if that output fed directly into the problems panel so I could click through to the errors.
Mikhail Arkhipov (@MikhailArkhipov) as part of your linting work, could you see what it would take to add some "Lint workspace" command? E.g. would every linter need a custom setting because they all have a custom way to do recursion?
I'm using this task definition. It is far from perfect, but kind-of gets the job done.
For example, the problem list gets emptied and re-populated when you click on a line to open the file. This can be fixed by setting owner="pylint", but then you get every problem listed twice - once from the "official" pylint and once from this task. Also the message categories are parsed incorrectly ("convention" is interpreted as "critical").
Note that you need to adapt this to your project (set the correct path to pylint and the name of the root package (instead of myproject tests) in the two command records).
I noticed this was marked done, does that mean there's a way to enable full project linting in the current or development releases of the vscode-python extension?
@sbmelvin - this is implemented in Microsoft Python Language server which is in experimental state. You can try it by setting python.jediEnabled: false and reloading VSC. LS will be downloaded as needed for the target OS.
Activity
DonJayamanne commentedon Nov 13, 2017
From robomojo on February 12, 2017 12:5
I have been searching for the same thing and it seems to be a missing vscode feature.
microsoft/vscode-eslint#91
microsoft/vscode#13953
Currently the method of doing this with pylint is just to use the terminal
pylint . -E, but it would be nice if that output fed directly into the problems panel so I could click through to the errors.DonJayamanne commentedon Nov 13, 2017
Ability to run as a task and report problems. (contribute problem matchers)
brettcannon commentedon Jan 17, 2018
Mikhail Arkhipov (@MikhailArkhipov) as part of your linting work, could you see what it would take to add some "Lint workspace" command? E.g. would every linter need a custom setting because they all have a custom way to do recursion?
11 remaining items
konstantint commentedon May 19, 2018
I'm using this task definition. It is far from perfect, but kind-of gets the job done.
For example, the problem list gets emptied and re-populated when you click on a line to open the file. This can be fixed by setting
owner="pylint", but then you get every problem listed twice - once from the "official" pylint and once from this task. Also the message categories are parsed incorrectly ("convention" is interpreted as "critical").Note that you need to adapt this to your project (set the correct path to pylint and the name of the root package (instead of
myproject tests) in the twocommandrecords).zen-crab commentedon May 23, 2018
I noticed this was marked done, does that mean there's a way to enable full project linting in the current or development releases of the vscode-python extension?
brettcannon commentedon May 24, 2018
@sbmelvin this is not marked as done.
MikhailArkhipov commentedon Jun 20, 2018
@sbmelvin - this is implemented in Microsoft Python Language server which is in experimental state. You can try it by setting
python.jediEnabled: falseand reloading VSC. LS will be downloaded as needed for the target OS.zen-crab commentedon Jun 20, 2018
Mikhail Arkhipov (@MikhailArkhipov) I'll give that a try. Do I need to use the development release for this?
MikhailArkhipov commentedon Jun 20, 2018
@sbmelvin, no, works in regular.