From fb0703ff95d1f913001fd2631665fa56b8e3f8cc Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 21 Nov 2016 19:49:51 -0600 Subject: [PATCH] dcoumenting ignoring all instances in a file --- Ignore.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Ignore.md b/Ignore.md index 37aacd9..d0e775c 100644 --- a/Ignore.md +++ b/Ignore.md @@ -21,4 +21,12 @@ Use a `-e` flag to disable a specific error when running shellcheck: Set the `SHELLCHECK_OPTS` variable in your `.bashrc`, `/etc/profile` or equivalent: - export SHELLCHECK_OPTS="-e SC2059" \ No newline at end of file + export SHELLCHECK_OPTS="-e SC2059" + +### Ignoring all instances in a file (0.4.4+) +Add a [[directive]] at the top of the file: + + #!/bin/sh + # shellcheck disable=SC2059` + +Note that the [[directive]] must be on the first line after the shebang ([#779](https://github.com/koalaman/shellcheck/issues/779)). That will be fixed in 0.4.6+ \ No newline at end of file