mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Ignore (markdown)
@@ -19,7 +19,12 @@ Use a `-e` flag to disable a specific error when running shellcheck:
|
|||||||
|
|
||||||
### Ignoring one or more type of error forever
|
### Ignoring one or more type of error forever
|
||||||
|
|
||||||
Set the `SHELLCHECK_OPTS` variable in your `.bashrc`, `/etc/profile` or equivalent:
|
In v0.7.0 you can create a file `.shellcheckrc` in your home directory (or your project's base directory), and add `disable` directives to it:
|
||||||
|
|
||||||
|
$ cat ~/.shellcheckrc
|
||||||
|
disable=SC2059
|
||||||
|
|
||||||
|
In earlier versions, you can set the environment variable `SHELLCHECK_OPTS` in your `.bashrc`, `/etc/profile` or equivalent:
|
||||||
|
|
||||||
export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090"
|
export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user