New quick fix options to disable the rule for the line, file or the project
See original GitHub issueExample, from vscode-groovy-lint:
Disable for the line
Includes a statement in the previous line, such as # shellcheck disable=SC2035
. Reference.
Disable for the entire file
Includes a ShellCheck directive statement before the first command in the file.
Disable for the project
Adds the ShellCheck directive statement to the .shellcheckrc
file (and create the file if it does not exist).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Idea: quick fix to disable rule for selected line(s) #245 - GitHub
I make frequent use of comments to disable selected ESLint rules for selected lines, for example: // eslint-disable-next-line max-len {} // long ...
Read more >Turning off eslint rule for a specific line - Stack Overflow
To disable next line: // eslint-disable-next-line no-use-before-define var thing = new Thing();. Or use the single line syntax: var thing = new Thing(); ......
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Disabling and enabling inspections | PyCharm Documentation
In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | Inspections. Locate the inspection you want to disable, and clear the ...
Read more >Code-style rule options - .NET - Microsoft Learn
You can enable or disable individual rules and configure the ... NET .editorconfig file to your project from the Add New Item dialog...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
E.g.:
would become:
More calls would result in:
(preferably)
That was not what I meant… when koalaman said “command” I believe he meant anything except “comments”. Does not matter which is the number of the line, the first command can be in the final of the file for example.
Regarding:
Yes, it’s the same thing that I’m thinking, I believe, which is: