mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1094 (markdown)
22
SC1094.md
Normal file
22
SC1094.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
## Parsing of sourced file failed. Ignoring it.
|
||||||
|
|
||||||
|
### Problematic code:
|
||||||
|
|
||||||
|
source mylib
|
||||||
|
|
||||||
|
### Correct code:
|
||||||
|
|
||||||
|
# shellcheck disable=SC1094
|
||||||
|
source mylib
|
||||||
|
|
||||||
|
(or fix `mylib`)
|
||||||
|
|
||||||
|
### Rationale:
|
||||||
|
|
||||||
|
ShellCheck encountered a parsing error in a sourced file, `mylib` in the example.
|
||||||
|
|
||||||
|
Fix parsing error, or just disable it with a directive.
|
||||||
|
|
||||||
|
### Exceptions:
|
||||||
|
|
||||||
|
If the file is fine and this is due to a known `shellcheck` bug, you can ignore it with a [[directive]] as in the example.
|
Reference in New Issue
Block a user