Terminal Tools for Code Metrics
A software metric is a measurement taken from source code or from the work that produced it, such as lines of code per language, comment ratio, or cyclomatic complexity in a function.
These tools read a repository and report on it without changing anything in it. They count what a codebase is made of, rank files by churn or complexity, and print numbers that a CI job can compare against a threshold. Teams use them to find the parts of a project that cost the most to maintain, often alongside static analysis tools that look for defects instead.
Below is a list of terminal tools that measure code.

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

cloctui
A TUI interface for CLOC (Count Lines of Code)
A TUI interface for CLOC (Count Lines of Code)

gittop
A TUI for visualizing Git repository statistics.
A TUI for visualizing Git repository statistics.

git-who
Git blame for file trees.
Git blame for file trees.

gocovsh
A shell for interacting with Go coverage profiles.
A shell for interacting with Go coverage profiles.

octocov
A toolkit for collecting code metrics.
A toolkit for collecting code metrics.

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

tokei
Count your code, quickly.
Count your code, quickly.
Know any terminal tools that would be good for this list? Post a Tool here!