Experimental Study of Four Selective Code Smells Declining in Real Life Projects
Keywords:
Code smell, refactoring, detector and PMD.Abstract
Different types of codes which may increase the liability of bugs or defects in future to a system known as Code smell. These type of smell can be eliminated without changing the external outcome and modifying the internal structure of the system. There are existing several well known code smell detection tools which automatically identify the code smells. The research used PMD automatic code smell detector to find four code smells on various open source java projects. It uses 43 open source java projects and identify the selective smells to these projects. The experiment shows duplicate codes, unused imports, unused local variables and unused private methods are not present for 79%, 34.9%, 51.1%, and 86.04% projects respectively. In the paper, it also shows that the probability of
occurring duplicate codes, unused imports, unused local variables and unused private methods are respectively 4.5%, 71%, 20.4% and 4.1% which indicates the four selective code smells are declining in real life projects day by day.
Downloads
Downloads
Published
Issue
Section
License
You are free to:
- Share — copy and redistribute the material in any medium or format for any purpose, even commercially.
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
- The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
- Attribution — You must give appropriate credit , provide a link to the license, and indicate if changes were made . You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation .
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.