Sabaragamuwa University of Sri Lanka

Detecting the Code Clone Density and Measuring the Complexity of Source Code Using SonarQube

Show simple item record

dc.contributor.author Vijayanandan, T.
dc.contributor.author Kumara, B.T.G.S.
dc.contributor.author Banujan, K.
dc.date.accessioned 2023-09-16T07:07:30Z
dc.date.available 2023-09-16T07:07:30Z
dc.date.issued 2022-04-06
dc.identifier.isbn 978-624-5727-21-6
dc.identifier.uri http://repo.lib.sab.ac.lk:8080/xmlui/handle/susl/3947
dc.description.abstract In software development, developers often copy and paste the code, with or without modifications. In the software development sector, maintenance accounts for roughly 90% of the software lifetime cost. The concept of code cloning is regarded as one of the aspects of bad smell which complicates the maintainability of the software. In the past, the adverse effects of code clones were measured in terms of their bugproneness, fault-proneness, tendency of experiencing constant modifications, including bug fixes, and a lifetime of clones across the software project. However, none of the studies analyzed the source code complexity in relation to the density of code clones. This study aims to analyze the association between code clone density and complexity. The study design is two-folded: analysis of duplicated files at the overall project-level and analysis of duplicated files at the individual file-level. In this study, we investigated twenty-two well-known Apache Software Foundation subject systems written in Java programming language for overall project-level and analyzed 416 source files among ten subject systems considered above for individual file-level. The SonarQube tool was utilized to detect code clones and to measure the complexity. A positive correlation coefficient of 0.927 was identified among code clone density and the complexity of overall project-level duplicated files but with a less statistical significance (p=5.201). A minor negative correlation coefficient of 0.099 was identified amongst code clone density and the complexity of its duplicated file with a statistical significance (p=0.042). According to the results, it is concluded that there is non-significant correlation between code clone density and overall project-level duplicated files’ complexity and a significant negative correlation between code clone density with its individual duplicated file’s complexity. Although no conclusive evidence that code clone density increases software difficulty was identified, this study can serve as a foundation for future research on code clones and software complexity. en_US
dc.language.iso en en_US
dc.publisher Sabaragamuwa University of Sri Lanka en_US
dc.subject Code Clones en_US
dc.subject Bug-Proneness en_US
dc.subject Density en_US
dc.subject Complexity en_US
dc.title Detecting the Code Clone Density and Measuring the Complexity of Source Code Using SonarQube en_US
dc.type Book en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search DSpace


Advanced Search

Browse

My Account