1
0
Fork 0
mirror of https://github.com/ludeeus/action-shellcheck.git synced 2024-08-16 10:09:53 +02:00

Update readme

This commit is contained in:
ludeeus 2020-05-30 11:57:50 +02:00
parent 21696cbf1a
commit 3a4806a465

View file

@ -22,8 +22,6 @@ jobs:
uses: ludeeus/action-shellcheck@master uses: ludeeus/action-shellcheck@master
``` ```
## Globally disable checks ## Globally disable checks
To disable specific checks add it to a `SHELLCHECK_OPTS` env key in the job definition. To disable specific checks add it to a `SHELLCHECK_OPTS` env key in the job definition.
@ -37,3 +35,25 @@ example:
env: env:
SHELLCHECK_OPTS: -e SC2059 -e SC2034 -e SC1090 SHELLCHECK_OPTS: -e SC2059 -e SC2034 -e SC1090
``` ```
## Disable paths
You can use the `ignore` input to disable specific directories.
```text
sample structure:
sample/directory/with/files/toignore/test.sh
sample/directory/with/files/test.sh
```
example:
```yaml
...
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore: toignore
```
This will skip `sample/directory/with/files/toignore/test.sh`