Skip to content
SPECIFICTION
Get listed

Cppcheck vs ShellCheck

Cppcheck

cppcheck.com

ShellCheck

shellcheck.net

Side by side

FigureCppcheckShellCheck
Price fromFreeFree
Free planYesYes
Free trialYes—
Open sourceYes—
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
Self-hostedYes—
Plans published81
Spec score · Linters8.8 (#1)7.6 (#24)
PurposeCppcheck is a static analysis tool for C and C++ code that detects bugs, undefined behavior, and dangerous coding constructs.ShellCheck is a static analysis tool that gives warnings and suggestions for Bash and sh scripts.

Plans

Cppcheck

  • Cppcheck Premium trialFree
  • Open-sourceFree
  • Open-source CppcheckFree
  • EnterprisePriced on request
  • Enterprise LicensePriced on request
  • IndividualPriced on request
  • ProjectPriced on request
  • Project LicensePriced on request

Cppcheck pricing →

ShellCheck

  • ShellCheckFree

ShellCheck pricing →

In their own words

Cppcheck

Cppcheck is a static analysis tool for C and C++ code that detects bugs, undefined behavior, and dangerous coding constructs. It can analyze non-standard syntax commonly found in embedded projects. The tool fully supports C++11, C++14, and C++17, with partial support for C++20, and lists integrations with Visual Studio, VSCode, Keil, Eclipse, CLion, Qt Creator, and C++ Builder. Its Soundy mode is intended to help find hard-to-find bugs discovered during testing. The free Open-source plan provides core static analysis. Premium adds checks for safety and security standards, with compliance reports for supported standards; the maker describes Premium as TÜV SÜD certified for safety-critical development. A three-week free trial is offered without a credit card or commitment. Individual licensing excludes CI environments, virtual machines, and containers, while Enterprise supports those environments and air-gapped use. Project requires at least five users and one Git repository. Paid plan prices are available by tailored quotation.

Visit cppcheck.com

ShellCheck

ShellCheck is a free static analysis tool for Bash and sh scripts. It flags syntax problems, semantic issues, and subtle pitfalls that could make scripts fail in future circumstances, then offers warnings and suggestions. You can paste a script into ShellCheck.net or run it from a terminal with `shellcheck yourscript`.

The project lists integrations for Vim, Emacs, Sublime, Pulsar Edit, and VS Code, along with GCC-compatible warnings for other editors. It can also be added to builds or test suites, with support listed for services including Travis CI, Codacy, Code Climate, CodeFactor, CircleCI, GitHub Actions, and Trunk. Output options include JSON, CheckStyle-compatible XML, GCC-compatible warnings, and readable text with or without ANSI colors. Installation routes include package managers, precompiled binaries, Docker, and source compilation. ShellCheck is licensed under GPLv3; its wiki documents the tool, and bugs can be reported through GitHub issues. There are no official Apple Silicon binaries, and compiling from source requires 2 GB of RAM.

Visit shellcheck.net