mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated Ignore (markdown)
@@ -17,11 +17,11 @@ Use a `-e` flag to disable a specific error when running shellcheck:
|
||||
|
||||
$ shellcheck -e SC2059 myscript
|
||||
|
||||
### Ignoring one type of error forever
|
||||
### Ignoring one or more type of error forever
|
||||
|
||||
Set the `SHELLCHECK_OPTS` variable in your `.bashrc`, `/etc/profile` or equivalent:
|
||||
|
||||
export SHELLCHECK_OPTS="-e SC2059"
|
||||
export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090"
|
||||
|
||||
### Ignoring all instances in a file (0.4.4+)
|
||||
Add a [[directive]] at the top of the file:
|
||||
|
Reference in New Issue
Block a user