Skip to main content

Module baseline

Module baseline 

Source
Expand description

Finding-count and finding-identity baselines for suppressing known issues across runs.

Structs§

BaselineData
Baseline data for comparison.
BaselineDeltas
Deltas between current analysis results and a saved baseline.
BaselineStaleness
One run’s view of a loaded baseline: everything needed to decide whether the baseline still describes the project.
CategoryDelta
Per-category delta between current results and a baseline.
DuplicationBaselineData
Baseline data for duplication comparison.
HealthBaselineCount
Serialized per-bucket finding tally inside a health baseline file.
HealthBaselineData
Baseline data for health (complexity) comparison.

Enums§

BaselineFileKind
What a saved baseline file is, read as one command’s format.
BaselineKind
Which command saved a baseline file.
BaselineStalenessWarning
Which advisory warning a loaded baseline earns, if any.
HealthBaselineMode
How a saved health baseline is matched against current findings.

Functions§

classify_baseline_file
Which command a saved baseline file belongs to, read as expected’s format.
classify_baseline_value
classify_baseline_file for 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-baseline must not overwrite the file at save_path, or None when the save may proceed.
stale_baseline_gate_trips
BaselineStaleness::trips_gate over the three counts it reads, for callers that carry the numbers in their own output type.
stale_share_warrants_warning
True when stale_entries out of baseline_entries is a large enough share to be worth warning about.