ShellCheck
ShellCheck analyzes shell scripts for issues such as unsafe quoting, mistaken patterns, and variables that may be used incorrectly. It checks the script text without running it, so you can use it while editing setup scripts.
Configuration in this template
The only setting in .shellcheckrc is external-sources=false. It keeps ShellCheck from following arbitrary files referenced through source or . unless they are included in the invocation. mise declares ShellCheck for Linux and macOS, and Prek registers a ShellCheck hook.
Check the setup scripts
Run this from the repository root on a machine with ShellCheck available.
shellcheck scripts/*.sh
Use the diagnostic code in the output to look up the suggested correction. If your derived project splits a script across several files, pass those files explicitly or configure source lookups for known project paths. Keep any exception close to the script or rule that needs it. ShellCheck documentation