{"title":"用于检测源代码中分层体系结构依赖违反的工具","authors":"Parinya Samrongsap, W. Vatanawood","doi":"10.1109/ICSEC.2014.6978182","DOIUrl":null,"url":null,"abstract":"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.","PeriodicalId":274945,"journal":{"name":"2014 International Computer Science and Engineering Conference (ICSEC)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2014-12-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"A tool for detecting dependency violation of layered architecture in source code\",\"authors\":\"Parinya Samrongsap, W. Vatanawood\",\"doi\":\"10.1109/ICSEC.2014.6978182\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"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.\",\"PeriodicalId\":274945,\"journal\":{\"name\":\"2014 International Computer Science and Engineering Conference (ICSEC)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2014-12-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2014 International Computer Science and Engineering Conference (ICSEC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICSEC.2014.6978182\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2014 International Computer Science and Engineering Conference (ICSEC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSEC.2014.6978182","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A tool for detecting dependency violation of layered architecture in source code
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.