stale-age¶
Part of: Freshness Check
| Check | freshness |
| Category | recommended |
| Applies to | functions, methods, classes |
| Since | v1.0.0 |
Docstring untouched beyond age threshold
What it detects¶
This rule flags symbols whose docstring has not been touched for more than age-threshold days (default: 90), regardless of whether the code changed. It uses git blame timestamps to determine the docstring's last modification date.
Why is this a problem?¶
Very old docstrings may describe obsolete behavior, outdated APIs, or deprecated patterns — even if the surrounding code hasn't changed much. A periodic review of aging docstrings ensures they remain accurate and relevant as the project evolves.