Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qlty.sh/llms.txt

Use this file to discover all available pages before exploring further.

qlty metrics [OPTIONS] [PATHS]...
Compute code quality metrics Calculate metrics like classes count, complexity, lines of code, and cohesion for supported languages using our custom built static analysis.

Arguments

Files to analyze
Compute metrics for all files, not just changed
Print per-directory stats
Print function stats
Directory depth to print, this flag will also set to print per-directory stats
Sort output by column [possible values: name, classes, functions, fields, lines, loc, complexity, lcom]
Maximum rows to print
Exclude tests
Upstream base ref to compare against
Only show results

Examples

Summarize metrics across directories
qlty metrics --all --max-depth 2
Review the 10 most complex files
qlty metrics --all --sort complexity --limit 10
View function-level metrics for a file
qlty metrics --functions remix/app/root.tsx

See Also