Fraunhofer-Gesellschaft

Publica

Hier finden Sie wissenschaftliche Publikationen aus den Fraunhofer-Instituten.

Building empirical support for automated code smell detection

 
: Schumacher, J.; Zazworka, N.; Shull, F.; Seaman, C.; Shaw, M.

:

Association for Computing Machinery -ACM-; Institute of Electrical and Electronics Engineers -IEEE-:
ESEM 2010, ACM-IEEE International Symposium on Empirical Software Engineering and Measurement. Proceedings : Bolzano-Bozen, Italy, 16-17 September 2010
New York: ACM, 2010
ISBN: 978-1-4503-0039-1
Art. 1852797
International Symposium on Empirical Software Engineering and Measurement (ESEM) <4, 2010, Bolzano>
Englisch
Konferenzbeitrag
Fraunhofer CESE ()

Abstract
Identifying refactoring opportunities in software systems is an important activity in today's agile development environments. The concept of code smells has been proposed to characterize different types of design shortcomings in code. Additionally, metric-based detection algorithms claim to identify the "smelly" components automatically. This paper presents results for an empirical study performed in a commercial environment. The study investigates the way professional software developers detect god class code smells, then compares these results to automatic classification. The results show that, even though the subjects perceive detecting god classes as an easy task, the agreement for the classification is low. Misplaced methods are a strong driver for letting subjects identify god classes as such. Earlier proposed metric-based detection approaches performed well compared to the human classification. These results lead to the conclusion that an automated metric-based p re-selection decreases the effort spent on manual code inspections. Automatic detection accompanied by a manual review increases the overall confidence in the results of metric-based classifiers.

: http://publica.fraunhofer.de/dokumente/N-263694.html