Skip to content
MA Marko Apfel
Articles Topics Tags About

Browse by term

Static Code Analysis

04 Feb 2026 4 min

Wiring Up Static Code Analysis via Directory.Build.props

A concrete Directory.Build.props example that incorporates Microsoft's .NET analyzers and StyleCop Analyzers, and applies stricter analysis to production projects than to tests and tooling.

Development
04 Feb 2026 4 min

The Agreed Static Code Analysis Rule Set: Production vs. Non-Production

How a cross-team rule set for .NET static code analysis splits responsibilities between Microsoft's analyzers and StyleCop, and why production and non-production code get deliberately different strictness levels.

Development
05 Sep 2024 3 min

Why Test Code Deserves a More Relaxed Static-Analysis Ruleset

Why applying one uniform static-analysis ruleset to both production and test code serves neither well, and what a more relaxed ruleset for tests actually buys a team.

Development
05 Sep 2024 3 min

Brownfield vs. Greenfield: Why One Static-Analysis Ruleset Doesn't Fit Both

Why brownfield and greenfield code call for different static-analysis rulesets, and how that split turns modernization into an incremental, sustainable process instead of a single risky migration.

Development

© 2026 Marko Apfel. Built with Hugo.

RSS