Skip to main content

Module finding

Module finding 

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

CodeLocation
Location in source code with optional span and symbol name.
Evidence
Evidence supporting the finding.
EvidenceMetric
A numeric metric with threshold comparison.
FindingId
Unique identifier for a finding.
RuleMeta
Meta information about the rule that triggered the finding.
StyleFinding
The core finding model — a structured observation about code style.
StyleSuggestion
A suggested fix or improvement for the finding.
TextSpan
A contiguous range of text in source code.

Enums§

Confidence
How confident we are that this is a real issue vs. a false positive.
RuleIntent
Intent behind a rule — why this rule exists.
StyleCategory
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 .signal field (language-agnostic, no classify_rule() needed).