Static Analysis Terminal Tools
Static analysis inspects code without running it, reporting bugs, unsafe patterns, style problems and security issues from the structure of the program alone.
In the terminal this covers linters, abstract syntax tree search and rewriting, line counters and complexity metrics, license and dependency audits, and inspectors that work on compiled binaries. The same command runs on a laptop in a couple of seconds and unchanged in continuous integration, which is where most projects enforce the result.
Below is a list of terminal tools for static analysis.

asmdiff
A tool to compare per-function C assembly across compilers and revisions.
A tool to compare per-function C assembly across compilers and revisions.

ast-grep
A CLI tool for code structural search, lint and rewriting.
A CLI tool for code structural search, lint and rewriting.

bacon
A background rust code checker.
A background rust code checker.

binsider
Analyze ELF binaries like a boss.
Analyze ELF binaries like a boss.

cargo-geiger
Detects usage of unsafe Rust in a Rust crate and its dependencies.
Detects usage of unsafe Rust in a Rust crate and its dependencies.

cloc
Count lines of code in many programming languages
Count lines of code in many programming languages

coderabbit
Free AI Code Reviews in the CLI.
Free AI Code Reviews in the CLI.

dhv
A TUI for visually exploring disassembled Python bytecode.
A TUI for visually exploring disassembled Python bytecode.

feluda
Detect license usage restrictions in your project!
Detect license usage restrictions in your project!

ktool
A TUI Mach-O/ObjC analysis and editing toolkit in the terminal.
A TUI Mach-O/ObjC analysis and editing toolkit in the terminal.

radare2
unix-like reverse engineering framework and command-line toolset.
unix-like reverse engineering framework and command-line toolset.

rizin
open source reverse engineering tool based on radare2.
open source reverse engineering tool based on radare2.

rustlens
A blazing-fast Rust code inspector for the terminal.
A blazing-fast Rust code inspector for the terminal.

scc
A very fast accurate code counter with complexity calculations.
A very fast accurate code counter with complexity calculations.

shellcheck
A static analysis tool for shell scripts.
A static analysis tool for shell scripts.

srgn
A syntax‑aware grep alternative with code edits.
A syntax‑aware grep alternative with code edits.

textual-astview
A Textual-based Python AST viewing widget library and application
A Textual-based Python AST viewing widget library and application

tokei
Count your code, quickly.
Count your code, quickly.

zizmor
A static analysis tool for GitHub Actions.
A static analysis tool for GitHub Actions.
Know any terminal tools that would be good for this list? Post a Tool here!