Tools/koalaman/shellcheck

ShellCheck

Static analysis for shell scripts

39.8k+50/wkgrowthHaskellGNU General Public License v3.0trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Mar 2026

ShellCheck finds bugs in your shell scripts before they bite you in production. It's a linter that reads your shell scripts and tells you about quoting errors, unsafe variable expansions, and portability issues. The kind of bugs that work fine on your machine and explode on the server. GPL v3. Written in Haskell but you don't need to know or care about that; it's a standalone binary. Integrates with every major editor (VS Code, Vim, Emacs), runs in CI, and has a web version at shellcheck.net for quick checks.

Fully free. No paid tier, no premium rules, no hosted service beyond the free web checker. Every rule, every check, every integration, $0.

Every team that writes shell scripts should use this. Solo or enterprise, the answer is the same: install it, add it to CI, stop shipping broken bash. Takes 5 minutes to set up.

The catch: ShellCheck only handles sh/bash/dash/ksh. If you're writing Zsh scripts, coverage is limited. And it catches syntax and common pitfalls but won't validate your script's logic; it'll tell you your variable is unquoted, not that your deployment script deletes the wrong directory. Also, GPL v3 means you can't embed it in proprietary tools without licensing implications.

Free vs Self-Hosted vs Paid

fully free

Fully open source under GPL v3. No paid tier, no premium features, no hosted offering. Every rule and integration is free. The GPL v3 license means you can use it freely in your workflow but cannot redistribute it as part of proprietary software without open-sourcing that software.

Free. No catches, no tiers. Just install it.

Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
81/100 · A
Adoption27/30
Maintenance25/25
Community9/20
License10/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 39,280 starsActive community: 1,909 forks

About

Stars
39,827
Forks
1,939

Explore Further

More tools in the directory