Many of the recommendations in the book Effective C#: 50 Specific Ways to Improve Your C# can be validated by Roslyn-based analyzers and code fixes. The author of the book Bill Wagner has a repository but they are not maintained.
Code analyzers and code fixes will be named and numbered similarly to the book. Some of the author's guidance is opinionated, and unless otherwise indicated as prescriptive guidance, will show up as Info
or Suggestion
. In your code base you can change the effective severity of the rules to suit your needs.
Where possible, documentation will be provided as a derivative work of the book, including test cases.