{"enrichment":{"faq":[{"a":"meziantou-analyzer is installed as a NuGet package. Run `dotnet add package Meziantou.Analyzer` in your project directory, or add `<PackageReference Include=\"Meziantou.Analyzer\" />` to your .csproj file. The package automatically integrates with your build and enables design, security, performance, and style rules across your codebase.","q":"How do I add meziantou analyzer to a dotnet project?"},{"a":"meziantou-analyzer rules use the MA prefix and are configured in `.editorconfig` at your repository root. Set severity per rule: `dotnet_diagnostic.MA0001.severity = warning`. Create a `[*.cs]` section and list each rule's desired level (none, silent, suggestion, warning, error). This ensures team consistency without modifying individual project files.","q":"How do I configure meziantou analyzer severity in .editorconfig?"},{"a":"meziantou-analyzer can overlap with SDK analyzers and Roslynator. Review your current analyzer rules before enabling Meziantou to avoid duplicate diagnostics. Disable conflicting rules in `.editorconfig` by setting their severity to `none`, or choose one analyzer suite per concern area. This keeps CI output actionable and prevents rule fatigue.","q":"Does meziantou analyzer overlap with existing analyzer baselines?"},{"a":"meziantou-analyzer covers design patterns, usage best practices, security concerns, performance optimizations, and code style. Rules span naming conventions, null-safety, async patterns, LINQ efficiency, and more. Each rule is identified by an MA code (e.g., MA0001) and can be individually configured in `.editorconfig` to match your team's standards.","q":"What code quality rules does meziantou analyzer enforce?"},{"a":"Start by installing the package and running a full build to see all diagnostics. Triage rules in `.editorconfig`: set high-priority violations to `error` for CI gates, medium concerns to `warning`, and style preferences to `suggestion`. Test locally first, then enable in CI pipelines. This prevents build failures while gradually enforcing standards.","q":"How should I bootstrap meziantou analyzer for CI validation?"},{"a":"meziantou-analyzer provides broader coverage across design, security, and performance in a single package, making it ideal for teams wanting comprehensive diagnostics without managing multiple analyzers. Roslynator focuses more on refactoring suggestions. Choose Meziantou for strict enforcement or Roslynator for enhancement-oriented analysis; avoid running both on overlapping rules.","q":"When should I use meziantou analyzer vs Roslynator?"}],"shadow_tags":["code-quality-enforcement","static-analysis-tooling","rule-severity-management","analyzer-package-integration","diagnostic-configuration","multi-category-linting","ci-validation-readiness","design-pattern-checking","security-scanning-baseline"],"summary_rewrite":"This skill installs and configures Meziantou.Analyzer, a comprehensive rule set for .NET codebases covering design, usage, security, performance, and style concerns. It manages package setup, severity configuration in `.editorconfig`, and avoids duplication with SDK or Roslynator analyzers. Use it when your team wants broader diagnostic coverage without managing multiple analyzer packages."},"files":[{"bytes":4335,"path":"catalog/Tools/Meziantou-Analyzer/skills/meziantou-analyzer/SKILL.md","sha256":"affbf767200ccef31768efda794bc201f2f6f09dc49e4a6f81be6c9263996dc2","url":"https://skillfed.io/files/managedcode/dotnet-skills/meziantou-analyzer/3ee3a838/SKILL.md"}],"id":"managedcode/dotnet-skills/meziantou-analyzer","links":{"html":"https://skillfed.io/managedcode/dotnet-skills/meziantou-analyzer","md":"https://skillfed.io/managedcode/dotnet-skills/meziantou-analyzer.md","repo":"https://github.com/managedcode/dotnet-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":35,"language":"C#","last_updated":"2026-07-25","license":"MIT","name":"meziantou-analyzer","publisher":"managedcode","stars":463},"relations":{"similar":[{"id":"managedcode/dotnet-skills/roslynator"},{"id":"managedcode/dotnet-skills/quality-ci"},{"id":"managedcode/dotnet-skills/analyzer-config"},{"id":"managedcode/dotnet-skills/code-analysis"},{"id":"managedcode/dotnet-skills/stylecop-analyzers"},{"id":"managedcode/dotnet-skills/complexity"},{"id":"managedcode/dotnet-skills/format"},{"id":"wshaddix/dotnet-skills/dotnet-roslyn-analyzers"},{"id":"managedcode/dotnet-skills/resharper-clt"},{"id":"managedcode/dotnet-skills/mstest"}]},"slug":{"owner":"managedcode","repo":"dotnet-skills","skill":"meziantou-analyzer"},"version":"3ee3a838"}
