1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/shellcheck.md
2019-01-30 11:19:23 +00:00

20 lines
379 B
Markdown

# shellcheck
> Shell script static analysis tool.
> Homepage: <https://www.shellcheck.net/>.
- 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}}`