DT : a detection tool to automatically detect code smell in software project

Xinghua Liu, Cheng Zhang · 2016

Context: Code smell can make the decline of code quality.Code smell is not a bug, and also can't make system to run exceptionally.It just can make some difficulties for software developers to understand and maintain the source code of projects, and then cause unnecessary maintenance costs.Objective: We try to more accurately detect code smell.Method: We put forward our smell detection tool: DT for short.We use DT to detect eleven code smells through detecting two kinds of projects: lab project, industrial project.Result: We get good results by using our Smell Detection Tool (DT), comparing with some famous detection tools: Checkstyle, PMD, JDeodorant and iPlasma.Conclusion: Our method Smell Detection Tool (DT) can be used to detect 11 kinds of code smell, In the future, we will go on detecting more code smells that can't be detected, and then do a survey about code smell among the software developers and maintainers. 1.IntroductionCode smell is an irrationality of code of software projects.They impede the evolution of code, so that they will result in an aftereffect that software developers pay more costs on maintenance.For detecting code smell, researchers develop detection tool to detect code smell automatically in source code of project.Among these detection tools, there are some famous detection tools: Checkstyle 1 , Infusion 2 , iPlasma [1], PMD [2], JDeodorant [3] InFusion, Stench Blossom and so on.Most detection tools can detect three or four code smells.The other parts of paper are as follows: Section 2 describes the related work.The Detection Theory is informed in Section 3. Experiment & Discussion is shown in Section 4. Section 5 comes to a conclusion and future work. 2.Related workFowler et al. [4] firstly put forward a concept Code Smell, which can result in some problems of maintainability.Dag Sjoberg et al. [5] mention the questions of maintenance, if we leave code smell aside, it causes a vexatious loss to the quality of code.Code smell is involved with project code.What's more, the size of industrial project is so enormous.This is not practical to find code smell by hand in project.Therefore code smell detection tools arise gradually.Researchers gradually put forward some detection tools.The first detection tool is released by Eva van Emden et al. [6].There are some famous detection tools: Checkstyle, iPlasma, PMD, JDeodorant and so on.Marinescu, Cristina, et al [7] also put forward a detection tool iPlasma.iPlasma is a sub version of InFusion and detect 4 code smells, this tool has lower detection precision.Xinghua et al.[8] also 1

Read the paper · More papers on PaperTik