Skip to content

Roslyn analyzers that allow you to define architectural rules for your codebase

License

Notifications You must be signed in to change notification settings

TheSylence/ArchitectureAnalyzer

Repository files navigation

ArchitectureAnalyzer

GitHub Nuget GitHub Workflow Status (with event)

Roslyn analyzers that allow you to define architectural rules for your codebase

Installation

1. Install package

Install the NuGet package in your project:

Install-Package ArchitectureAnalyzer

or

dotnet add package ArchitectureAnalyzer

2. Configure project

Add a file called "architecture.rules.json" as an AdditionalFile to your project. This file will contain the rules for your project.

<ItemGroup>
    <AdditionalFiles Include="architecture.rules.json" />
</ItemGroup>

3. Define rules

Define the rules for your project in the "architecture.rules.json" file. The schema for this file is:

{
    "rules": [
      "<rule>",
      "<rule>",
      "..."
    ]
}

Rules

See rules documentation

License

MIT License (Read license)

Uses LightJson by Marcos López C.

About

Roslyn analyzers that allow you to define architectural rules for your codebase

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published