Created SC1090 (markdown)

koalaman
2015-08-16 17:51:52 -07:00
parent d43095d395
commit 5989e71faf

20
SC1090.md Normal file

@@ -0,0 +1,20 @@
## This source will be skipped since it's not constant.
### Problematic code:
source "$1/lib.sh"
### Correct code:
# shellcheck disable=SC1090
source "$1/lib.sh"
### Rationale:
ShellCheck is not able to include sourced files from non-constant paths.
Instead, be aware that anything in the sourced file will be ignored, and then disable the message.
### Exceptions:
Ignore the message with a [[directive]].