Insert ignore statements with ALE? #4489
Unanswered
Erotemic
asked this question in
Q&A - Ask for help with problems
Replies: 1 comment 4 replies
-
In short: no. The principle is that the editor itself should not hide warnings or errors reported by the underlining tools (linters). If this is necessary for the specific project it should be done by the underlining tool itself so everyone working on the same project get the same errors and warnings idependently of the editor they use. Related discussions: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering if there exists (or is any any easy way to implement) a feature where I can insert an "ignore directive" for particular lint warnings.
The specific use case I have is shellcheck. It seems to update itself with new sets of warnings all the time, and while this is useful it often gives me warning for things I'm aware are ok in the circumstance.
I currently just go through them line by line and fix them or add a
# shellcheck disable=<num>
line above the offending line. Similarly with Python I would write a# NOQA
(which is a bit easier because I don't need to write out the error code).Is there a way that ale can insert the appropriate ignore directive into the code? If not, is there a way that I could implement a function in my vimrc that inspects the current linting error and grabs its error code so I can insert the appropriate text?
Beta Was this translation helpful? Give feedback.
All reactions