Expand description
Reports and analysis module for linthis.
This module provides:
- Issue classification statistics
- HTML report generation
- Code quality trend analysis
- Team code style consistency analysis
Structs§
- Consistency
Analysis - Team code style consistency analysis.
- File
Stats - Statistics for a specific file.
- Html
Report Options - Options for HTML report generation.
- Outlier
File - A file that deviates significantly from team norms.
- Repeated
Pattern - A pattern that appears across multiple files.
- Report
Statistics - Aggregated statistics for a lint run.
- Rule
Stats - Statistics for a specific rule code.
- Severity
Counts - Issue counts by severity level.
- Summary
Metrics - Summary metrics for the report.
- Trend
Analysis - Aggregated trend analysis.
- Trend
Data Point - A single data point in the trend timeline.
Enums§
- Trend
Direction - Trend direction indicator.
Functions§
- analyze_
trends - Build trend analysis from historical results. Automatically groups by scope: uses the most recent run’s scope as reference, and only compares results with the same scope.
- generate_
html_ report - Generate a complete HTML report from a RunResult.
- get_
last_ result - Get the most recent result file.
- load_
historical_ results - Load historical results from the .linthis/result/ directory.
- load_
result_ from_ file - Load a result from a specific file path.