Extending Roslyn for custom code analysis and refactoring in large enterprise applications

Venkatesh Muniyandi *

Masters in computer Application, USA.
 
Research Article
International Journal of Science and Research Archive, 2021, 03(02), 271-283.
Article DOI: 10.30574/ijsra.2021.3.2.0107
Publication history: 
Received on 05 July 2021; revised on 23 September 2021; accepted on 26 September 2021
 
Abstract: 
Enterprise application growth requires state-of-the-art tools that protect code quality while implementing best practices and optimizing refactoring activities. Microsoft has created Roslyn as a .NET compiler platform that delivers strong capabilities for automated refactoring and static code analysis. The built-in features of Roslyn do not sufficiently meet the advanced standards required by extensive enterprise application management needs. The research investigates how Roslyn can be expanded to extend its custom code analysis and refactoring functionalities. Organizations that create specific analyzers and code-fix providers achieve automated adherence to their internal coding standards while detecting security risks within extensive codebases. The study uses a systematic approach that includes actual case study analysis and performance measurements of bespoke Roslyn extensions. The tested approach showed major success through enhanced code maintainability alongside consistent code and improved developer operational efficiency. The study establishes that extending Roslyn represents a valid enterprise solution for applications since it helps eliminate technical liabilities while maintaining code integrity across expansive development teams.
 
Keywords: 
Code Optimization; Static Analysis; Developer Productivity; Roslyn Extensions; Enterprise Refactoring; Automated Testing
 
Full text article in PDF: