|
4 | 4 |
|
5 | 5 | root = true
|
6 | 6 |
|
| 7 | +file_header_template = Copyright 2020 New Relic, Inc. All rights reserved.\nSPDX-License-Identifier: Apache-2.0 |
| 8 | + |
7 | 9 | [*]
|
8 | 10 | insert_final_newline = true
|
9 | 11 | indent_style = space
|
@@ -62,10 +64,17 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
|
62 | 64 | # Use PascalCase for constant fields
|
63 | 65 | dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
|
64 | 66 | dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
|
65 |
| -dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style |
| 67 | +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style |
66 | 68 | dotnet_naming_symbols.constant_fields.applicable_kinds = field
|
67 | 69 | dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
|
68 | 70 | dotnet_naming_symbols.constant_fields.required_modifiers = const
|
| 71 | +dotnet_style_operator_placement_when_wrapping = beginning_of_line |
| 72 | +tab_width = 4 |
| 73 | +end_of_line = crlf |
| 74 | +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion |
| 75 | +dotnet_style_prefer_compound_assignment = true:suggestion |
| 76 | +dotnet_style_prefer_simplified_interpolation = true:suggestion |
| 77 | +dotnet_style_namespace_match_folder = true:suggestion |
69 | 78 |
|
70 | 79 | ###############################
|
71 | 80 | # C# Code Style Rules #
|
@@ -139,6 +148,19 @@ csharp_space_after_dot = false
|
139 | 148 | # Wrapping preferences
|
140 | 149 | csharp_preserve_single_line_statements = true
|
141 | 150 | csharp_preserve_single_line_blocks = true
|
| 151 | +csharp_using_directive_placement = outside_namespace:silent |
| 152 | +csharp_prefer_simple_using_statement = true:suggestion |
| 153 | +csharp_style_namespace_declarations = block_scoped:silent |
| 154 | +csharp_style_prefer_method_group_conversion = true:silent |
| 155 | +csharp_style_prefer_top_level_statements = true:silent |
| 156 | +csharp_style_expression_bodied_lambdas = true:silent |
| 157 | +csharp_style_expression_bodied_local_functions = false:silent |
| 158 | +csharp_style_prefer_null_check_over_type_check = true:suggestion |
| 159 | +csharp_style_prefer_local_over_anonymous_function = true:suggestion |
| 160 | +csharp_style_prefer_index_operator = true:suggestion |
| 161 | + |
| 162 | +# error if file doesn't have the required header |
| 163 | +dotnet_diagnostic.SA1633.severity = error |
142 | 164 |
|
143 | 165 | ##################################
|
144 | 166 | # Visual Basic Code Style Rules #
|
|
0 commit comments