Expand description
Finding-count and finding-identity baselines for suppressing known issues across runs.
Structs§
- Baseline
Data - Baseline data for comparison.
- Baseline
Deltas - Deltas between current analysis results and a saved baseline.
- Baseline
Staleness - One run’s view of a loaded baseline: everything needed to decide whether the baseline still describes the project.
- Category
Delta - Per-category delta between current results and a baseline.
- Duplication
Baseline Data - Baseline data for duplication comparison.
- Health
Baseline Count - Serialized per-bucket finding tally inside a health baseline file.
- Health
Baseline Data - Baseline data for health (complexity) comparison.
Enums§
- Baseline
File Kind - What a saved baseline file is, read as one command’s format.
- Baseline
Kind - Which command saved a baseline file.
- Baseline
Staleness Warning - Which advisory warning a loaded baseline earns, if any.
- Dead
Code Baseline Error - Why a dead-code baseline could not be applied.
- Dead
Code Baseline Outcome - What a loaded dead-code baseline did to a result.
- Health
Baseline Mode - How a saved health baseline is matched against current findings.
Functions§
- apply_
dead_ code_ baseline - Apply a dead-code baseline to a result.
- classify_
baseline_ file - Which command a saved baseline file belongs to, read as
expected’s format. - classify_
baseline_ value classify_baseline_filefor a caller that parses the file itself.- declares_
baseline_ format - Whether a baseline file is written in the format it was loaded as.
- filter_
new_ clone_ groups - Filter a duplication report to only include clone groups not present in the baseline.
- filter_
new_ issues - Filter results to only include issues not present in the baseline.
- recompute_
stats - Recompute duplication statistics after filtering (baseline or
--changed-since). - refuse_
baseline_ kind_ overwrite - Why a
--save-baselinemust not overwrite the file atsave_path, orNonewhen the save may proceed. - stale_
baseline_ gate_ trips BaselineStaleness::trips_gateover the three counts it reads, for callers that carry the numbers in their own output type.- stale_
share_ warrants_ warning - True when
stale_entriesout ofbaseline_entriesis a large enough share to be worth warning about.