Skip to main content

Module reports

Module reports 

Source
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§

ConsistencyAnalysis
Team code style consistency analysis.
FileStats
Statistics for a specific file.
HtmlReportOptions
Options for HTML report generation.
OutlierFile
A file that deviates significantly from team norms.
RepeatedPattern
A pattern that appears across multiple files.
ReportStatistics
Aggregated statistics for a lint run.
RuleStats
Statistics for a specific rule code.
SeverityCounts
Issue counts by severity level.
SummaryMetrics
Summary metrics for the report.
TrendAnalysis
Aggregated trend analysis.
TrendDataPoint
A single data point in the trend timeline.

Enums§

TrendDirection
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.