A tool for detecting dependency violation of layered architecture in source code

Parinya Samrongsap, Wiwat Vatanawood · 2014

Layered architecture has been widely used for managing complexity of source code by separating of related main functionalities into distinct layers. However, the source code always evolves so that it may cause the dependency violation to layered architectural design rules. In this paper, we present a tool for detecting these dependency violation of the layered architecture in C# source code. The tool allows the user to identify the top-down sequences of layers as desired. The syntax tree will be generated to represent the input source code by using Roslyn tool and the dependency among the source code is analyzed as the syntax tree is traversed. The boundary of each layer is recognized and the dependency violation against the closed layered architecture rules is reported.

Read the paper · More papers on PaperTik