1
0
Fork 0
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:
Justin Hammond 2021-01-13 10:26:27 -07:00 committed by GitHub
parent b247a9c05d
commit ac3e5d1ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: