arrow
Return

Detecting outdated code element references in software repository documentation

delete2023-11-21
delete1
delete
OA
AI
W
Wen Siang Tan *
M
Markus Wagner
C
Christoph Treude
DOI:10.1007/s10664-023-10397-6delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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 references detected by our approach, some of which have already led to documentation fixes. As an initiative toward keeping documentation in software repositories up-to-date, we have made our implementation available for developers to scan their GitHub projects for outdated code element references.
Keywords:
Software repositories
Outdated documentation
Outdated references
Code elements

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

M
Monash University
Scholars:
5.4W
Papers: 5.4W
Citations: 79
U
University of Adelaide
Scholars:
2.3W
Papers: 2.4W
Citations: 4.2W
U
university of melbourne
Scholars:
5.7W
Papers: 5.4W
Citations: 69
researcher View more organizations