Skip to main content

Module flag_retirement

Module flag_retirement 

Source
Expand description

Per-flag retirement report for fallow flags --retirement.

The per-site flag findings group into one row per flag identity. Each detector adds a reason and its evidence to a row. The report is advisory: every action is auto_fixable: false, and nothing here removes code.

Structs§

RetirementFacts
Flag facts that only the retirement report reads. The per-site feature_flags[] array does not carry them.
RetirementOptions
Options that narrow and order the rows of the report.
RetirementSiteInput
One site of a flag, before the sites group into rows.

Enums§

RetirementSort
How the report orders its rows.

Constants§

AGE_GATE_AGE_OFF
Why a --max-flag-age gate with the age mode off did not run.
AGE_GATE_NO_HISTORY
Why a --max-flag-age gate without git history did not run.

Functions§

aggregate_flags
Group flag sites into one row per flag and run the reason detectors.
finish_report
Count, filter, order and limit the rows, and add the review action to each candidate.
max_age_gate
The --max-flag-age verdict over every row in scope. Pass the rows before finish_report filters and limits them. skip_reason is set when no age was measured; the gate is then skipped, not passed.