mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Directive (markdown)
@@ -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.
|
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
|
### source
|
||||||
Tell ShellCheck where to find a sourced file (since 0.4.0):
|
Tell ShellCheck where to find a sourced file (since 0.4.0):
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user