Expand description
StyleFinding — the structured representation of a code style observation.
Evolves from the raw CodeIssue to include confidence, evidence,
category context, and actionable suggestions. This is the standard
data model for all outputs (terminal, JSON, Markdown, CI, etc.).
Structs§
- Code
Location - Location in source code with optional span and symbol name.
- Evidence
- Evidence supporting the finding.
- Evidence
Metric - A numeric metric with threshold comparison.
- Finding
Id - Unique identifier for a finding.
- Rule
Meta - Meta information about the rule that triggered the finding.
- Style
Finding - The core finding model — a structured observation about code style.
- Style
Suggestion - A suggested fix or improvement for the finding.
- Text
Span - A contiguous range of text in source code.
Enums§
- Confidence
- How confident we are that this is a real issue vs. a false positive.
- Rule
Intent - Intent behind a rule — why this rule exists.
- Style
Category - Code style categories — what aspect of the code is being evaluated.
Functions§
- build_
profile_ from_ findings - Build a StyleProfile directly from findings (language-agnostic).
- compute_
signal_ scores_ from_ findings - Compute signal scores from findings using each finding’s
.signalfield (language-agnostic, no classify_rule() needed).