metrics
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
[PATHS]
One or more paths to scan for code smells.
-a, --all
Compute metrics for all files, not just changed
-d, --dirs
Output directory-level metrics. Conflicts with --functions
.
--functions
Output function-level metrics. Conflicts with --dirs
.
--max-depth [DEPTH]
Print directory-level metrics up to a depth from the current directory.
--sort [SORT]
Sort results by a metric
--limit [LIMIT]
Maximim rows to print. Works well with
--sort
.--exclude-tests
Exclude tests
--upstream [UPSTREAM]
Upstream base ref to compare against
--quiet
Only show results
Examples
Summarize metrics across directories
Review the 10 most complex files
View function-level metrics for a file