{"repo":"meziantou/Meziantou.Analyzer","free":true,"listed":false,"github":"https://github.com/meziantou/Meziantou.Analyzer","clone":"git clone https://github.com/meziantou/Meziantou.Analyzer.git","description":"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.","language":"C#","stars":1174,"topics":["analyzer","csharp","roslyn","dotnet","static-analysis","code-quality","roslyn-analyzers"],"license":"MIT","category":"dev-tools","readme_excerpt":"Meziantou.Analyzer Meziantou.Analyzer is a powerful C# Roslyn analyzer that uses static analysis to detect bugs, surface security issues, and enforce best practices. It helps you catch real-world problems early—before they reach production—by analyzing your code as you write it and providing automated fixes when possible. Designed for both human developers and AI-assisted workflows, it acts as a safety net to keep your code reliable, consistent, and maintainable. Installation Install the NuGet package Meziantou.Analyzer Rules If you are already using other analyzers, you can check which rules are duplicated with well-known analyzers Id Category Description Severity Is enabled Code fix Configurable -- -------- ----------- :------: :--------: :------: :----------: MA0001 Usage StringComparison is missing ℹ️ ✔️ ✔️ ❌ MA0002 Usage IEqualityComparer\\ or IComparer\\ is missing ⚠️ ✔️ ✔️ ✔️ MA0003 Style Add parameter name to improve readability ℹ️ ✔️ ✔️ ✔️ MA0004 Usage Use Task.ConfigureAwait ⚠️ ✔️ ✔️ ✔️ MA0005 Performance Use Array.Empty\\ () ⚠️ ✔️ ✔️ ❌ MA0006 Usage Use String.Equals instead of equality operator ⚠️ ✔️ ✔️ ❌ MA0007 Style Add a comma after the last value ℹ️ ✔️ ✔️ ✔️ MA0008 Performance Add StructLayoutAttribute ⚠️ ✔️ ✔️ ❌ MA0009 Security Add regex evaluation timeout ⚠️ ✔️ ❌ ❌ MA0010 Design Mark attributes with AttributeUsageAttribute ⚠️ ✔️ ✔️ ❌ MA0011 Usage IFormatProvider is missing ⚠️ ✔️ ✔️ ✔️ MA0012 Design Do not raise reserved exception type ⚠️ ✔️ ❌ ❌ MA0013 Design Typ","default_branch":null,"files":null,"tree":[],"storefront":"/r/meziantou","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/meziantou/Meziantou.Analyzer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}