mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2024-08-16 10:09:53 +02:00
Updates README to include ShellCheck flag/options usage (#35)
This commit is contained in:
parent
b247a9c05d
commit
ac3e5d1ab4
1 changed files with 7 additions and 2 deletions
|
@ -22,9 +22,14 @@ jobs:
|
|||
uses: ludeeus/action-shellcheck@master
|
||||
```
|
||||
|
||||
## Globally disable checks
|
||||
## ShellCheck options
|
||||
|
||||
To disable specific checks add it to a `SHELLCHECK_OPTS` env key in the job definition.
|
||||
You can pass any supported ShellCheck option or flag with the `SHELLCHECK_OPTS` env key in the job definition.
|
||||
|
||||
Some examples include:
|
||||
|
||||
* To disable specific checks (eg: `-e SC2059 -e SC2034 -e SC1090`)
|
||||
* To test against different shells (eg: `-s dash` or `-s ksh`)
|
||||
|
||||
example:
|
||||
|
||||
|
|
Loading…
Reference in a new issue