title | nav_order |
---|---|
FAQ |
6 |
A: Similar to Infrastructure as Code, Style as Code is meant to help manage coding style through versioned EditorConfig files.
Also:
var goodName = style as Code;
A: A key part of implementing code style best practices is Roslyn Analyzers. These convert EditorConfig settings and theoretical best practices to the squiggles and suggestions shown in your IDE.
Many analyzer packages exist, each containing multiple rules (also known as diagnostics). One goal of this project is to map analyzer rules to best practice pages that discusses their usage.
This allows developers to easily search by rule IDs (e.g. IDE0003) to find the best practices information on that subject.
See the Microsoft Docs on this question.