Formatting code quality
Recipe ID
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.FormattingCodeQualityArtifactOpenRewrite.Recipes.CSharp.CodeQualityCode formatting recipes for C#.
Composite recipecsharpcode-qualityformattingProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.FormattingCodeQualityIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQualityDefinition
This recipe runs the following recipes in order.
- Add newline before return
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddNewLineBeforeReturn - Add newline after opening brace
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddNewLineAfterOpeningBrace - Normalize whitespace
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.NormalizeWhitespace - Format accessor list
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.FormatAccessorList - Format switch section
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.FormatSwitchSection - Format documentation summary
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.FormatDocumentationSummary - Add summary element to documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddSummaryToDocComment - Add parameter name to documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddParameterToDocComment - Add paragraph to documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddParagraphToDocComment - Order elements in documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.OrderDocCommentElements - Add 'typeparam' element to documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddTypeParamToDocComment - Fix documentation comment tag
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.FixDocCommentTag - Invalid reference in a documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.InvalidDocCommentReference - Add summary to documentation comment
OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddSummaryElementToDocComment