title | description | layout | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Trunk | How to run ShellCheck |
ShellCheck is a static analysis tool designed to identify and report syntax errors and potential issues in shell scripts |
|
ShellCheck is a linter for Bash.
You can enable the ShellCheck linter with:
trunk check enable shellcheck
ShellCheck will be auto-enabled if any Shell files are present.
ShellCheck supports the following config files:
.shellcheckrc
shellcheckrc
You can move these files to .trunk/configs
and trunk check
will still find them. See Moving Linters for more info. Trunk Code Quality provides a default .shellcheckrc
if your project does not already have one.
- ShellCheck site
- ShellCheck Trunk Code Quality integration source
- Trunk Code Quality's open source plugins repo