shellcheck: add page (#2140)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
4cf731ce1d
commit
60a0f9d1a5
19
pages/common/shellcheck.md
Normal file
19
pages/common/shellcheck.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# shellcheck
|
||||
|
||||
> Shell script static analysis tool.
|
||||
|
||||
- Check a shell script:
|
||||
|
||||
`shellcheck {{file.sh}}`
|
||||
|
||||
- Override script's shebang:
|
||||
|
||||
`shellcheck --shell {{sh|bash|ksh}} {{file.sh}}`
|
||||
|
||||
- Ignore certain errors:
|
||||
|
||||
`shellcheck --exclude {{SC1009}} {{file.sh}}`
|
||||
|
||||
- Ignore multiple errors:
|
||||
|
||||
`shellcheck --exclude {{SC1009,SC1073}} {{file.sh}}`
|
Reference in New Issue
Block a user