Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.28 KB

shellcheck.md

File metadata and controls

48 lines (35 loc) · 1.28 KB
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
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

ShellCheck

ShellCheck is a linter for Bash.

You can enable the ShellCheck linter with:

trunk check enable shellcheck

shellcheck example output

Auto Enabling

ShellCheck will be auto-enabled if any Shell files are present.

Settings

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.

Links