shellcheck
« Back to VersTracker
Description:
Static analysis and lint tool, for (ba)sh scripts
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @ShellCheck  |  formulae.brew.sh
Category: Developer tools
Tags: linting static-analysis bash devops shell
Install: brew install shellcheck
About:
ShellCheck is a static analysis tool that automatically detects bugs, logical errors, and corner cases in shell scripts. It provides detailed diagnostics and suggestions for fixing issues in sh, bash, and zsh syntax. The tool is invaluable for maintaining robust and secure automation scripts.
Key Features:
  • Supports multiple shell dialects (bash, sh, zsh, ksh)
  • Provides detailed diagnostics with correction suggestions
  • Checks for common pitfalls like unquoted variables and unsafe command expansion
  • Available as a command-line tool, online service, and IDE plugin
Use Cases:
  • CI/CD pipeline validation for infrastructure scripts
  • Pre-commit hooks to catch bugs before deployment
  • Educational tool for learning shell scripting best practices
Alternatives:
  • checkbashisms – Focuses strictly on POSIX compliance rather than general bug detection
  • shfmt – Focuses on code formatting and style rather than static analysis
Version History
Detected Version Rev Change Commit
Sep 13, 2025 12:14pm 0 VERSION_BUMP a62d2de4
Jan 8, 2025 11:24am 0 VERSION_BUMP 79db4d0a