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, Better Code Hub, 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, 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).
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 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.
Statically generates a call graph image and displays it on screen.
Code Analysis to ship Better Code, Faster.
Linter for integrating annotated TODOs with your issue trackers
Sigrid helps you to improve your software by measuring your system's code quality, and then compares the results against a benchmark of thousands of industry systems to give you concrete advice on areas where you can improve.
A linter and formatter to help you to improve copywriting, correct spaces, words, punctuations between CJK (Chinese, Japanese, Korean).
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.
Combination of multiple linters to install as a GitHub Action.
Automated Code Analysis for repos on GitHub or BitBucket.
Scan is a free open-source DevSecOps platform for detecting security issues in source code and dependencies. It supports a broad range of languages and CI/CD pipelines.
Help make this list better
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, Better Code Hub, shellcheck, callGraph, Codacy.
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, todocheck, autocorrect, bashate, i-Code CNES for Shell, sh, shellharden.