Naming code quality

Proprietary

Naming convention recipes for C# code.

OpenRewrite.Recipes.CSharp.CodeQuality.Naming.NamingCodeQuality
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Naming.NamingCodeQuality

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Async method name should end with Async
  2. Non-async method should not end with Async
  3. Use nameof operator
  4. Rename private field according to _camelCase convention
  5. Rename parameter to camelCase
  6. Parameter name should match base definition
  7. Attribute name should end with 'Attribute'
  8. Exception name should end with 'Exception'
  9. EventArgs name should end with 'EventArgs'
  10. Find TODO/HACK/FIXME comments