ShellCheck

Open Source

by ShellCheck

Provided by ShellCheck

Not yet rated
Platform
Web / Windows / Linux / macOS
Pricing
Open Source
Account required
No
Ads
None
Last verified
9 hours ago
Developer
ShellCheck
Official URL

Overview

ShellCheck is a static analysis tool that finds bugs and risky patterns in sh and bash scripts. It catches the classic mistakes that bite shell users: missing quotes around variables, word-splitting surprises, portability problems when a script declared as sh uses bash features, and subtler logic errors. Each warning has a code, and the project wiki holds long-form explanations of the warnings and how to fix them.

The website shellcheck.net lets you paste a script and see warnings instantly, and can apply suggested fixes automatically. For regular use most people install it locally: it is packaged for apt, dnf, pacman, Homebrew, MacPorts, Chocolatey, winget, Scoop and many others, offered as Docker images and pre-built binaries for Linux, macOS and Windows.

ShellCheck is open source under the GPLv3. It plugs into editors such as Vim, Emacs, VS Code and Sublime Text, and into CI pipelines, where its exit codes can fail a build. Output can be plain text, GCC-style, JSON or CheckStyle XML.

Features

  • Paste-and-check web editor at shellcheck.net with instant warnings
  • One-click apply of suggested fixes on the website
  • Flags quoting, word-splitting, portability and logic errors in sh and bash scripts
  • Warning codes linked to long-form explanations on the project wiki
  • Command-line tool for Linux, macOS, Windows and BSD, plus Docker images
  • Editor integrations for Vim, Emacs, VS Code, Sublime Text and others
  • Output as text, GCC-style, JSON or CheckStyle XML for CI and tooling

Privacy

See the official privacy policy. Running the command-line version keeps scripts on your own machine.

Pros & Cons

Pros

  • Free and open source under the GPLv3
  • Explains why something is wrong, not just that it is
  • Easy to add to CI because failing checks return a non-zero exit code
  • Installable from almost every package manager

Cons

  • Designed for sh and bash scripts, so it is less useful for other shells
  • The website does not say how pasted scripts are handled, so sensitive scripts are better checked locally
  • Some warnings need judgement and occasional suppression comments

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Testing · Jest

    Tests JavaScript code with a zero-config testing framework.

    Not yet rated
    Open Source Web
  • Testing · Selenium

    Automates browser testing across many languages.

    Not yet rated
    Open Source Windows Linux
  • Testing · Cypress

    Tests web applications end-to-end in the browser.

    Not yet rated
    Open Source Windows Linux
  • Testing · Playwright

    Automates reliable end-to-end testing across browsers.

    Not yet rated
    Open Source Windows Linux