Skip to content

Commit

Permalink
chore: allow expression_bodied_methods and expression_bodied_operators
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jul 21, 2023
1 parent d16c289 commit 2748ca5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion

# Use expression body for methods (IDE0022)
csharp_style_expression_bodied_methods = suggestion

# Use expression body for operators (IDE0023 and IDE0024)
csharp_style_expression_bodied_operators = when_on_single_line:warning

# Use language keywords instead of framework type names for type references (IDE0049)
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion

Expand Down

0 comments on commit 2748ca5

Please sign in to comment.