-
Notifications
You must be signed in to change notification settings - Fork 137
Commit dd1f805
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 29621ff commit dd1f805
File tree
4 files changed
+2274
-69
lines changed- server/src
- __tests__
- shellcheck
- __tests__
4 files changed
+2274
-69
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 | - | ||
225 | + | ||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
408 | - | ||
408 | + | ||
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
|
0 commit comments