Detecting outdated code element references in software repository documentation
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 modificat...
Saved in:
Main Authors: | , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2024
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/8759 https://ink.library.smu.edu.sg/context/sis_research/article/9762/viewcontent/docer.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-9762 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-97622024-05-23T05:42:47Z Detecting outdated code element references in software repository documentation TAN, Wen Siang WAGNER, Markus TREUDE, Christoph 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. 2024-02-01T08:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8759 info:doi/10.1007/s10664-023-10397-6 https://ink.library.smu.edu.sg/context/sis_research/article/9762/viewcontent/docer.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Software repositories outdated documentation outdated references code elements Software Engineering |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Software repositories outdated documentation outdated references code elements Software Engineering |
spellingShingle |
Software repositories outdated documentation outdated references code elements Software Engineering TAN, Wen Siang WAGNER, Markus TREUDE, Christoph Detecting outdated code element references in software repository documentation |
description |
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. |
format |
text |
author |
TAN, Wen Siang WAGNER, Markus TREUDE, Christoph |
author_facet |
TAN, Wen Siang WAGNER, Markus TREUDE, Christoph |
author_sort |
TAN, Wen Siang |
title |
Detecting outdated code element references in software repository documentation |
title_short |
Detecting outdated code element references in software repository documentation |
title_full |
Detecting outdated code element references in software repository documentation |
title_fullStr |
Detecting outdated code element references in software repository documentation |
title_full_unstemmed |
Detecting outdated code element references in software repository documentation |
title_sort |
detecting outdated code element references in software repository documentation |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2024 |
url |
https://ink.library.smu.edu.sg/sis_research/8759 https://ink.library.smu.edu.sg/context/sis_research/article/9762/viewcontent/docer.pdf |
_version_ |
1814047520994623488 |