pub struct FileRecord {Show 21 fields
pub path: String,
pub relative_path: String,
pub language: Option<Language>,
pub size_bytes: u64,
pub detected_encoding: Option<String>,
pub raw_line_categories: RawLineCounts,
pub effective_counts: EffectiveCounts,
pub status: FileStatus,
pub warnings: Vec<String>,
pub generated: bool,
pub minified: bool,
pub vendor: bool,
pub parse_mode: Option<ParseMode>,
pub submodule: Option<String>,
pub coverage: Option<FileCoverage>,
pub style_analysis: Option<StyleAnalysis>,
pub cyclomatic_complexity: Option<u32>,
pub lsloc: Option<u32>,
pub commit_count: Option<u32>,
pub last_commit_date: Option<String>,
pub content_hash: u64,
}Fields§
§path: String§relative_path: String§language: Option<Language>§size_bytes: u64§detected_encoding: Option<String>§raw_line_categories: RawLineCounts§effective_counts: EffectiveCounts§status: FileStatus§warnings: Vec<String>§generated: bool§minified: bool§vendor: bool§parse_mode: Option<ParseMode>§submodule: Option<String>§coverage: Option<FileCoverage>Line/function/branch coverage from an external LCOV file, when provided.
style_analysis: Option<StyleAnalysis>Lexical style-guide adherence analysis; None for unsupported languages.
cyclomatic_complexity: Option<u32>Cyclomatic complexity approximation for this file (sum of branch decision keywords).
lsloc: Option<u32>Logical SLOC estimate; None when the language does not support lexical LSLOC.
commit_count: Option<u32>Git commit-count in the configured activity window that touched this file.
None unless analysis.activity_window_days is set and the root is a git repo.
Powers the hotspots view; distinct from the web layer’s scan-to-scan churn rate.
last_commit_date: Option<String>ISO-8601 date of the most recent commit touching this file within the window.
content_hash: u64SHA-256 (first 8 bytes as u64) of raw file bytes — used for duplicate detection.
Not serialized; consumed in-process during assemble_run.
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§fn clone(&self) -> FileRecord
fn clone(&self) -> FileRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more