Detecting Outdated Code Element References in Software Repository Documentation
Wen Siang Tan, Markus Wagner, Christoph Treude

TL;DR
This paper presents an automated approach to detect outdated code element references in software documentation, helping maintain accurate and synchronized documentation across large codebases.
Contribution
The paper introduces a novel method for identifying obsolete code references in documentation, validated on over 3,000 GitHub projects, with real-world impact demonstrated through issue submissions.
Findings
Most projects contain outdated code references at some point.
Our approach successfully detects these outdated references.
Some detected issues led to documentation updates.
Abstract
Outdated documentation is a pervasive problem in software development, preventing effective use of software, and misleading users and developers alike. We posit that one possible reason why documentation becomes out of sync so easily is that developers are unaware of when their source code modifications render the documentation obsolete. Ensuring that the documentation is always in sync with the source code takes considerable effort, especially for large codebases. To address this situation, we propose an approach that can automatically detect code element references that survive in the documentation after all source code instances have been deleted. In this work, we analysed over 3,000 GitHub projects and found that most projects contain at least one outdated code element reference at some point in their history. We submitted GitHub issues to real-world projects containing outdated…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software System Performance and Reliability · Scientific Computing and Data Management
