首页 | 本学科首页   官方微博 | 高级检索  
     


From a domain analysis to the specification and detection of code and design smells
Authors:Naouel Moha  Yann-Gaël Guéhéneuc  Anne-Françoise Le Meur  Laurence Duchien  Alban Tiberghien
Affiliation:1. Ptidej Team, GEODES, DIRO, Université de Montréal, Montreal, QC, Canada
2. Adam Team, INRIA Lille Nord Europe, LIFL CNRS UMR 8022, Université des Sciences et Technologies de Lille, Villeneuve-d′ Ascq cedex, France
4. IRISA, Triskell Team, INRIA Rennes-Bretagne Atlantique, Campus de Beaulieu, 35042, Rennes cedex, France
3. Ptidej Team, DGIGL, école Polytechnique de Montréal, Montreal, QC, Canada
Abstract:Code and design smells are recurring design problems in software systems that must be identified to avoid their possible negative consequences on development and maintenance. Consequently, several smell detection approaches and tools have been proposed in the literature. However, so far, they allow the detection of predefined smells but the detection of new smells or smells adapted to the context of the analysed systems is possible only by implementing new detection algorithms manually. Moreover, previous approaches do not explain the transition from specifications of smells to their detection. Finally, the validation of the existing approaches and tools has been limited on few proprietary systems and on a reduced number of smells. In this paper, we introduce an approach to automate the generation of detection algorithms from specifications written using a domain-specific language. This language is defined from a thorough domain analysis. It allows the specification of smells using high-level domain-related abstractions. It allows the adaptation of the specifications of smells to the context of the analysed systems. We specify 10 smells, generate automatically their detection algorithms using templates, and validate the algorithms in terms of precision and recall on Xerces v2.7.0 and GanttProject v1.10.2, two open-source object-oriented systems. We also compare the detection results with those of a previous approach, iPlasma.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号