-
Notifications
You must be signed in to change notification settings - Fork 136
Commit 9f94f89
committed
feat(shellcheck): add code actions to disable rule
Implements #933.
Always add a code action to disable a given diagnostic for a given line
or for the whole file.
This patch handles:
* indentation
* existing directive. It also sorts the disable directives if any
* multi-line command
Add corresponding tests.
Signed-off-by: Thomas Faivre <thfaivre@gmail.com>1 parent aec18c7 commit 9f94f89
File tree
4 files changed
+2274
-69
lines changed- server/src
- __tests__
- shellcheck
- __tests__
4 files changed
+2274
-69
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 | - | ||
219 | + | ||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
398 | 398 |
| |
399 | 399 |
| |
400 | 400 |
| |
401 | - | ||
401 | + | ||
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
|
0 commit comments