Title :
A Software Framework for Identifying the Law of Demeter Violations
Author :
Mellado, Roberto P. ; De S. P. Moreira, Gabriel ; Da Cunha, Adilson M. ; Vieira Dias, Luiz Alberto
Author_Institution :
Comput. Sci. Div., Brazilian Aeronaut. Inst. of Technol., Sao Paulo, Brazil
Abstract :
This paper describes a software framework for identifying the Law of Demeter violations in programs´ source-code. It discusses the main challenges related to language constructs and static code analysis. Its main contribution is the proposition and implementation of an extended version to the Law of Demeter as a software framework for identifying violations in software written in C# language. At the end, a quasi-controlled experiment involving an open-source program and its results is presented, where a reduction of 89% on reported violations was achieved by eliminating noisy violations.
Keywords :
C language; law; C# language; Law of Demeter violations; language constructs; noisy violations; open-source program; programs source code; software framework; static code analysis; Concrete; Java; Noise; Noise reduction; Open source software; Syntactics; Law of Demeter; noise reduction; parsing strategies; static code analysis;
Conference_Titel :
Information Technology - New Generations (ITNG), 2015 12th International Conference on
Conference_Location :
Las Vegas, NV
Print_ISBN :
978-1-4799-8827-3
DOI :
10.1109/ITNG.2015.72