The Best Shell Static Analysis Tools (Linters/Formatters)
We rank 17 Shell linters, code analyzers, formatters, and more. Find and compare tools like Mega-Linter, Sigrid, shellcheck, and more. Please rate and review tools that you've used. This helps others find the best tools for their projects.
6 Shell Tools
shellcheck
ShellCheck, a static analysis tool that gives warnings and suggestions for bash/sh shell scripts.
i-Code CNES for Shell
An open source static code analysis tool for Shell and Fortran (77 and 90).
shellharden
A syntax highlighter and a tool to semi-automate the rewriting of scripts to ShellCheck conformance, mainly focused on quoting.
11 Multi-Language Tools
Mega-Linter
Mega-Linter can handle any type of project thanks to its 70+ embedded Linters, its advanced reporting, runnable on any CI system or locally, with assisted installation and configuration, able to apply formatting and fixes
Better Code Hub
Better Code Hub checks your GitHub codebase against 10 engineering guidelines devised by the authority in software quality, Software Improvement Group.
autocorrect
A linter and formatter to help you to improve copywriting, correct spaces, words, punctuations between CJK (Chinese, Japanese, Korean).
StaticReviewer
Static Reviewer executes code checks according to the most relevant Secure Coding Standards, OWASP, CWE, CVE, CVSS, MISRA, CERT, for 40+ programming languages, using 1000+ built-in validation rules for Security, Deadcode & Best Practices Available a module for Software Composition Analysis (SCA) to find vulnerabilities in open source and third party libraries.
Help make this list better
Suggest Tools
Frequently Asked Questions
What are Shell tools?
A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manipulation, program execution, and printing text. The terms "shell" and "shell script" are often used interchangeably, although a shell script is a specific type of shell program and not a shell in itself.
What are the best Shell static analysis tools and linters?
The most popular Shell tools ranked by user votes are: Mega-Linter, Sigrid, shellcheck, Better Code Hub, callGraph.
Which Shell tools are free to use?
Tools with a free plan include Better Code Hub. On top of that, there are also a number of open source like Mega-Linter, shellcheck, callGraph, kmdr, bashate, i-Code CNES for Shell, sh, shellharden, todocheck, autocorrect.