Skip to main content

Module stale_doc

Module stale_doc 

Source
Expand description

stale-doc native rule — detects documentation files that are likely stale because strongly co-changed code files have been updated more recently.

Uses the co_change_edges table in the normalize index to find which code files historically change together with each doc file, then compares last-commit timestamps.

Structs§

StaleDocConfig
Configurable options for the stale-doc rule. Deserialized from extra fields on the RuleOverride via rule_config().

Functions§

build_stale_doc_report
Build a DiagnosticsReport for the stale-doc rule.
git_last_commit_time
Returns the Unix timestamp (seconds) of the most recent commit that touches rel_path.