diff --git a/Ignore.md b/Ignore.md index c6049a3..cc29256 100644 --- a/Ignore.md +++ b/Ignore.md @@ -19,7 +19,12 @@ Use a `-e` flag to disable a specific error when running shellcheck: ### 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"