A Software Framework for Identifying the Law of Demeter Violations

Roberto Pepato Mellado, Gabriel de Souza Pereira Moreira, Adilson Marques da Cunha, Luiz Alberto Vieira Dias · 2015

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.

Read the paper · More papers on PaperTik