# meziantou/Meziantou.Analyzer

A powerful C# Roslyn analyzer that uses static analysis to detect bugs, surface security issues, and enforce best practices—helping developers and AI write more reliable code.

Repository: https://github.com/meziantou/Meziantou.Analyzer
Canonical: https://ross.abutalabs.com/products/meziantouanalyzer
Homepage: https://www.meziantou.net/
Language: C#
License: MIT
License Family: permissive
Topics: analyzer, csharp, roslyn, dotnet, static-analysis, code-quality, roslyn-analyzers
Last push: 2026-09-03T01:05:12+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 88, longevity 100
- inputs: {"age_days": 2821, "days_push": 0, "days_rel": 0, "gap_med": 0.0, "n_releases_24m": 339}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1187, forks 70 (observed 2026-09-03T02:15:14.938622+00:00)

## What it is
Meziantou.Analyzer is a C# Roslyn analyzer distributed as a NuGet package that performs static analysis to detect bugs, security issues, and violations of best practices, with many rules offering automated code fixes. It ships a large set of configurable rules (MA0001+) covering usage, style, performance, design, and security categories.

## Use cases
- enforce C# best practices across a codebase
- detect bugs and security issues like missing regex timeouts at compile time
- add automated code fixes for common C# mistakes
- improve code quality in CI builds via Roslyn analyzers
- help AI-assisted coding write more reliable C#
- compare and complement other .NET analyzers without duplicate rules

## When to choose
- you maintain a C#/.NET codebase and want broad, actively maintained analyzer rules
- you want code fixes integrated into the IDE and build
- you need security-focused checks such as regex evaluation timeouts

## When to avoid
- your project is not on .NET/Roslyn
- you only need formatting or linting outside the compiler pipeline

## Facets
- artifact type: library
- maturity: active
- function: linter, code-review, security, developer-tools
- domain: developer-tools, programming-languages, security, testing
- platform: dotnet, cross-platform
- tags: roslyn-analyzer, csharp, static-analysis, code-quality, nuget, code-fixes

## Member repositories
- meziantou/Meziantou.Analyzer (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:14.938622+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-30T06:26:07.319518+00:00, confidence not recorded.
  - readme: https://github.com/meziantou/Meziantou.Analyzer (fetched 2026-09-03T02:15:14.938622+00:00, sha 0016cc32d042)
  - homepage: https://www.meziantou.net/ (fetched 2026-08-29T12:32:41.775509+00:00, sha 5bade24b7f60)
  - site_page: https://www.meziantou.net/about.htm (fetched 2026-08-29T12:32:41.784708+00:00, sha 69b46de02b62)
  - site_page: https://www.meziantou.net/links-about-multithreading-in-dotnet.htm (fetched 2026-08-29T12:32:41.789980+00:00, sha ebb91c9f24d0)
  - site_page: https://www.meziantou.net/limit-what-nuget-packages-can-do-in-your-project.htm (fetched 2026-08-29T12:32:41.786460+00:00, sha 9a33da42b80e)
  - site_page: https://www.meziantou.net/you-can-use-newline-characters-in-urls.htm (fetched 2026-08-29T12:32:41.788188+00:00, sha c358fe52d1f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
