International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 176 - Number 32 |
Year of Publication: 2020 |
Authors: Aakanshi Gupta, Bharti Suri, Vijin Vincent |
10.5120/ijca2020920362 |
Aakanshi Gupta, Bharti Suri, Vijin Vincent . An Empirical Examination of the Relationship between Code Smells and Vulnerabilities. International Journal of Computer Applications. 176, 32 ( Jun 2020), 1-9. DOI=10.5120/ijca2020920362
The quality of software is a crucial issue as a software system evolves. Managing source code smells and vulnerabilities contributes to software quality. In general, metrics have been used to classify code smells in source code, and an empirical examination is being considered in this paper on the correlation of code smells and vulnerabilities. For continuous inspection of code quality, Sonar Cloud has been used to conduct automated assessments with static code analysis to detect code smells and vulnerabilities with web scrapping technique. Web scraping, web harvesting, or web data extraction is data scraping used for extracting data from websites. In web scrapping technique, Selenium library provides sufficient tool to scrap data from Sonar Cloud. A statistical correlation approach is used to create a relationship between code smell and vulnerability that takes both dependent and independent values to measure coefficient of correlation. The conclusion of the study is, there exist vulnerabilities and code smells pair whose correlation coefficient is up to 0.93, which is quite sufficient to justify the results.