mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 04:51:37 -07:00
Issue 837 flag to include only certain warnings
Issue https://github.com/koalaman/shellcheck/issues/837 Add an --include option, which creates a whitelist of warnings to report on, the opposite of --exclude.
This commit is contained in:
parent
a621eba6d3
commit
59c47f2266
4 changed files with 52 additions and 5 deletions
|
@ -44,6 +44,13 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts.
|
|||
is *auto*. **--color** without an argument is equivalent to
|
||||
**--color=always**.
|
||||
|
||||
**-i**\ *CODE1*[,*CODE2*...],\ **--include=***CODE1*[,*CODE2*...]
|
||||
|
||||
: Explicitly include only the specified codes in the report. Subsequent **-i**
|
||||
options are cumulative, but all the codes can be specified at once,
|
||||
comma-separated as a single argument. Include options override any provided
|
||||
exclude options.
|
||||
|
||||
**-e**\ *CODE1*[,*CODE2*...],\ **--exclude=***CODE1*[,*CODE2*...]
|
||||
|
||||
: Explicitly exclude the specified codes from the report. Subsequent **-e**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue