# ShellCheck

> A shell script static analysis tool

Source: https://talira.ai/catalog/shellcheck-301sfq95
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Web app
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [developer tools / terminal / shell](https://talira.ai/categories/developer-tools/terminal/shell)
- Platforms: linux, macos, windows, web, docker[^7]
- Licence: GPL-3.0-or-later[^6][^7]
- Pricing: Free and open source[^6]
- Free tier: yes[^6]
- Self-hostable: yes[^7]
- Cloud hosted: yes[^7]
- Creator: Vidar Holen

ShellCheck finds bugs in sh and bash scripts and explains them: quoting mistakes, broken conditionals, misused commands, beginner syntax errors and subtle portability problems, each with a wiki page per warning code. It runs in the terminal, in editors ([Vim](https://talira.ai/catalog/vim-mmarvwkk.md), Emacs, Sublime and most others through GCC-style output), in CI and as a [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md) hook, and shellcheck.net checks a pasted script in the browser. Vidar Holen wrote it in Haskell, under GPL-3.0.

## Links

- Website: https://www.shellcheck.net
- GitHub: https://github.com/koalaman/shellcheck
- Docs: https://github.com/koalaman/shellcheck/wiki

## Ways to install

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/k/koalaman/shellcheck>[^1]
- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/shellcheck>[^2]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/shellcheck>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/shellcheck>[^4]

## Problems it solves

- my bash script works on my machine and breaks on filenames with spaces
- find bugs in shell scripts before they run in production
- lint all the shell scripts in our repo on every pull request
- explain why bash gives me a cryptic syntax error
- check that a script is portable to plain sh and dash, not just bash
- see warnings about unquoted variables right in my editor
- paste a shell script into a website and get it reviewed

## Features

- warnings and suggestions for sh, bash, dash and ksh scripts
- a wiki page for every warning code
- web version at shellcheck.net
- editor integration via GCC-compatible output
- pre-commit hook
- Docker image
- inline directives to ignore specific warnings

## Limitations

- Doesn't check Zsh, Csh, Tcsh or PowerShell scripts: it supports only bash, ksh, dash and POSIX sh[^5]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Vidar Holen

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [actionlint](https://talira.ai/catalog/actionlint-jtcdzp1v.md): Static checker for GitHub Actions workflow files
- [ansible-lint](https://talira.ai/catalog/ansible-lint-r3bpcyc4.md): Checks playbooks for practices and behavior that could potentially be improved
- [TFLint](https://talira.ai/catalog/tflint-4a8xgw05.md): A Pluggable Terraform Linter
- [Hadolint](https://talira.ai/catalog/hadolint-gnzsdn0x.md): Dockerfile linter that checks best practices and the shell in RUN lines

## Sources

[^1]: https://github.com/koalaman/shellcheck/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^5]: https://github.com/koalaman/shellcheck/wiki/SC1071 (checked 19 Nov 2026)
[^6]: https://github.com/koalaman/shellcheck/blob/master/LICENSE (checked 19 Nov 2026)
[^7]: https://github.com/koalaman/shellcheck/blob/master/README.md (checked 19 Nov 2026)
