From d2918e3309a8fef26f74fabcaed830c6f04f6ded Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 15 Sep 2021 18:09:41 -0700 Subject: [PATCH] Updated Directive (markdown) --- Directive.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Directive.md b/Directive.md index 2e20e86..d8910d0 100644 --- a/Directive.md +++ b/Directive.md @@ -49,6 +49,14 @@ echo "Hello $USER" # Will suggest ${USER} To see a list of optional checks with examples, run `shellcheck --list-optional`. See [[here|optional]] for more information. +### external-sources + +Set whether or not to follow arbitrary file paths in `source` statements (since 0.8.0). + +Use `external-sources=true` in `.shellcheckrc` to let shellcheck access arbitrary files, whether or not they're specified as input. `external-sources=false` disables this, which is the default. + +Individual script files can disable but not enable this option. + ### source Tell ShellCheck where to find a sourced file (since 0.4.0):