-
Notifications
You must be signed in to change notification settings - Fork 35
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
ignore concrete linting warnings via GUI, e.g. via QuickFix #535
Comments
@VladimirFokow We typically don't want to disable linting via settings.json. But this could be done via pyproject.toml, or .pylintrc etc which is what pylint will itself use. This way when pylint is run via cli there won't be a difference in output. This feels like a duplicate of: #70 |
Thanks @karthiknadig ! Interesting! I've never heard of neither |
Doing this there's multiple things to consider because it's possible to disable in various way:
|
ah, I see the complications. I don't mind closing this issue now |
I would expect |
Current problem
Sometimes, for example, for a new library, their syntax may still be not integrated in pylint, so the only way to get rid of the warnings is to disable them in settings (JSON).
But it can be hard to know exactly what to write there.
I propose for example, when the user hovers over the linting warning in VSCode, and clicks "Quick fix", there can be an option "Ignore linting like this" which would automatically write to the settings (JSON) this specific case.
(Like the feature "Remember spelling" in some spelling checkers. It's easy - you just have to right-click and select the option you want, no need to think of the syntax how to write it into settings json.)
Desired solution
An option to "remember" not to lint this type of things
(to be more specific, a dialog can open to the users, what specifically they want, (to solve ambiguity) e.g.
)
Additional context
pylint already supports disabling specific linting in settings (JSON), for example:
This proposal - is to automatically propose the user which type of linting the concrete case is, and easily "remember" it only with gui clicks, for example, via the VSCode's "quick fix" functionality.
An advantage of this functionality (in addition to speed and convenience) - is the presentation to the users of all possible choices what kinds / combinations to ignore - ones which they might not have though of themselves but which might be more suitable to them.
The text was updated successfully, but these errors were encountered: