Roslyn-based Static Code Analyzer for C#
A static analysis tool built on the Roslyn compiler platform that detects code smells, calculates complexity metrics, and enforces coding standards. Extensible rule engine with custom analyzers.
Modular: Parser → Syntax Tree Visitor → Rules Engine → Reporter (JSON/HTML/SARIF)
.NET 8 SDK, Visual Studio 2022 / VS Code with C# Dev Kit
# Clone
git clone https://github.com/J1u2a3n8/static-code-analyzer.git
cd static-code-analyzer
dotnet restore
# dotnet builddotnet run --project src/StaticAnalyzer -- --path ./target-project --output report.jsondotnet teststatic-code-analyzer/
├── src/ # Main source code
├── tests/ # Unit/integration tests
├── docs/ # Documentation
├── .github/ # CI/CD workflows
└── README.md
C#, .NET 8, Roslyn (Microsoft.CodeAnalysis), Newtonsoft.Json
This project is licensed under the MIT License - see LICENSE for details.
⭐ If you found this project useful, give it a star!