Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

static-code-analyzer

Roslyn-based Static Code Analyzer for C#

Language License Last Commit Stars Issues

Description

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.

Architecture

Modular: Parser → Syntax Tree Visitor → Rules Engine → Reporter (JSON/HTML/SARIF)

Quick Start

Prerequisites

.NET 8 SDK, Visual Studio 2022 / VS Code with C# Dev Kit

Installation

# Clone
git clone https://github.com/J1u2a3n8/static-code-analyzer.git
cd static-code-analyzer

dotnet restore
# dotnet build

Usage

dotnet run --project src/StaticAnalyzer -- --path ./target-project --output report.json

Testing

dotnet test

Project Structure

static-code-analyzer/
├── src/              # Main source code
├── tests/            # Unit/integration tests
├── docs/             # Documentation
├── .github/          # CI/CD workflows
└── README.md

Tech Stack

C#, .NET 8, Roslyn (Microsoft.CodeAnalysis), Newtonsoft.Json

License

This project is licensed under the MIT License - see LICENSE for details.

Author

J1u2a3n8 - GitHub - LinkedIn


⭐ If you found this project useful, give it a star!

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages