style(sdk): restrict expression bodied members
All checks were successful
CI / build (push) Successful in 15s
All checks were successful
CI / build (push) Successful in 15s
This commit is contained in:
parent
5ececefe5c
commit
246a90810e
1 changed files with 8 additions and 8 deletions
|
|
@ -65,43 +65,43 @@ csharp_style_prefer_labeled_jump_statements = true
|
||||||
# Use expression body for constructors (IDE0021)
|
# Use expression body for constructors (IDE0021)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0021
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0021
|
||||||
dotnet_diagnostic.IDE0021.severity = warning
|
dotnet_diagnostic.IDE0021.severity = warning
|
||||||
csharp_style_expression_bodied_constructors = true
|
csharp_style_expression_bodied_constructors = false
|
||||||
|
|
||||||
# Use expression body for methods (IDE0022)
|
# Use expression body for methods (IDE0022)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0022
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0022
|
||||||
dotnet_diagnostic.IDE0022.severity = warning
|
dotnet_diagnostic.IDE0022.severity = warning
|
||||||
csharp_style_expression_bodied_methods = true
|
csharp_style_expression_bodied_methods = false
|
||||||
|
|
||||||
# Use expression body for operators (IDE0023, IDE0024)
|
# Use expression body for operators (IDE0023, IDE0024)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0023-ide0024
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0023-ide0024
|
||||||
dotnet_diagnostic.IDE0023.severity = warning
|
dotnet_diagnostic.IDE0023.severity = warning
|
||||||
dotnet_diagnostic.IDE0024.severity = warning
|
dotnet_diagnostic.IDE0024.severity = warning
|
||||||
csharp_style_expression_bodied_operators = true
|
csharp_style_expression_bodied_operators = false
|
||||||
|
|
||||||
# Use expression body for properties (IDE0025)
|
# Use expression body for properties (IDE0025)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0025
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0025
|
||||||
dotnet_diagnostic.IDE0025.severity = warning
|
dotnet_diagnostic.IDE0025.severity = warning
|
||||||
csharp_style_expression_bodied_properties = true
|
csharp_style_expression_bodied_properties = false
|
||||||
|
|
||||||
# Use expression body for indexers (IDE0026)
|
# Use expression body for indexers (IDE0026)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0026
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0026
|
||||||
dotnet_diagnostic.IDE0026.severity = warning
|
dotnet_diagnostic.IDE0026.severity = warning
|
||||||
csharp_style_expression_bodied_indexers = true
|
csharp_style_expression_bodied_indexers = false
|
||||||
|
|
||||||
# Use expression body for accessors (IDE0027)
|
# Use expression body for accessors (IDE0027)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0027
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0027
|
||||||
dotnet_diagnostic.IDE0027.severity = warning
|
dotnet_diagnostic.IDE0027.severity = warning
|
||||||
csharp_style_expression_bodied_accessors = true
|
csharp_style_expression_bodied_accessors = when_on_single_line
|
||||||
|
|
||||||
# Use expression body for lambdas (IDE0053)
|
# Use expression body for lambdas (IDE0053)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0053
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0053
|
||||||
dotnet_diagnostic.IDE0053.severity = warning
|
dotnet_diagnostic.IDE0053.severity = warning
|
||||||
csharp_style_expression_bodied_lambdas = true
|
csharp_style_expression_bodied_lambdas = when_on_single_line
|
||||||
|
|
||||||
# Use expression body for local functions (IDE0061)
|
# Use expression body for local functions (IDE0061)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0061
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0061
|
||||||
dotnet_diagnostic.IDE0061.severity = warning
|
dotnet_diagnostic.IDE0061.severity = warning
|
||||||
csharp_style_expression_bodied_local_functions = true
|
csharp_style_expression_bodied_local_functions = false
|
||||||
|
|
||||||
# Simplify name (IDE0001)
|
# Simplify name (IDE0001)
|
||||||
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0001
|
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0001
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue