# DotNetAnalyzers/StyleCopAnalyzers

An implementation of StyleCop rules using the .NET Compiler Platform

Repository: https://github.com/DotNetAnalyzers/StyleCopAnalyzers
Canonical: https://ross.abutalabs.com/products/stylecopanalyzers
Language: C#
License: MIT
License Family: permissive
Last push: 2025-12-31T16:00:59+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 60, release rhythm 8, longevity 100
- inputs: {"age_days": 4307, "days_push": 245, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2854, forks 506 (observed 2026-08-28T04:07:25.813611+00:00)

## What it is
StyleCop.Analyzers implements StyleCop style rules as Roslyn analyzers for C#, distributed as a NuGet package. It includes code fixes for many violations and supports configuration via stylecop.json and rule set files.

## Use cases
- enforce stylecop rules in c# projects
- check c# code style automatically in visual studio
- migrate from stylecop classic to roslyn analyzers
- auto-fix style violations with code fixes
- configure code style rule severity per project

## When to choose
- you want StyleCop rules enforced at build time in modern C# projects
- you need IDE-integrated diagnostics with quick-fix code fixes
- you want rule severity configurable via rulesets and stylecop.json

## When to avoid
- you need StyleCop settings via legacy Settings.StyleCop files
- you need analyzers for languages other than C#
- you want a standalone linter outside the .NET build/IDE toolchain

## Facets
- artifact type: library
- maturity: active
- function: linter, code-review, developer-tools
- domain: developer-tools, programming-languages, testing
- platform: dotnet, windows, cross-platform, editor-plugin
- tags: stylecop, roslyn-analyzers, code-style, static-analysis, csharp, nuget, code-fixes

## Member repositories
- DotNetAnalyzers/StyleCopAnalyzers (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.813611+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:44.919140+00:00, confidence not recorded.
  - readme: https://github.com/DotNetAnalyzers/StyleCopAnalyzers (fetched 2026-08-28T04:07:25.813611+00:00, sha 3326b3cd018d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
