Skip to content

Commit 81356ea

Browse files
committed
Update .editorconfig
1 parent af42913 commit 81356ea

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

.editorconfig

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ csharp_new_line_before_finally = true
160160
csharp_new_line_before_members_in_object_initializers = true
161161
csharp_new_line_before_members_in_anonymous_types = true
162162
csharp_new_line_between_query_expression_clauses = true
163+
csharp_place_type_attribute_on_same_line = false
164+
csharp_place_method_attribute_on_same_line = false
165+
csharp_place_accessorholder_attribute_on_same_line = false
163166
csharp_place_field_attribute_on_same_line = false
164167

165168
# Indentation preferences
@@ -235,6 +238,12 @@ csharp_preserve_single_line_statements = true
235238
# IDE0060: Remove unused parameter
236239
dotnet_diagnostic.IDE0060.severity = warning
237240

241+
# ReSharper comment alignment
242+
resharper_csharp_int_align_comments = true
243+
244+
# Some values of the enum are not processed inside 'switch' statement and are handled via default section
245+
resharper_switch_statement_handles_some_known_enum_values_with_default_highlighting = warning
246+
238247
# BannedApiAnalyzers
239248
dotnet_diagnostic.RS0030.severity = error
240249

@@ -245,18 +254,15 @@ resharper_convert_to_null_coalescing_compound_assignment_highlighting = none
245254
resharper_merge_into_logical_pattern_highlighting = none
246255
resharper_use_negated_pattern_in_is_expression_highlighting = none
247256

248-
# ReSharper comment alignment
249-
resharper_csharp_int_align_comments = true
250-
251257
# Unity Test Framework
252258
[**/Tests/**/*.cs]
253259

254-
# NUnit2045: Use Assert.Multiple
255-
dotnet_diagnostic.NUnit2045.severity = none
256-
257260
# Access to a static member of a type via a derived type (e.g., NUnit.Framework.Is)
258261
resharper_access_to_static_member_via_derived_type_highlighting = none
259262

263+
# NUnit2045: Use Assert.Multiple
264+
dotnet_diagnostic.NUnit2045.severity = none
265+
260266
[src/{Compilers,ExpressionEvaluator,Scripting}/**Test**/*.{cs,vb}]
261267

262268
# IDE0060: Remove unused parameter
@@ -309,3 +315,20 @@ dotnet_diagnostic.IDE2006.severity = warning
309315
# CA1822: Make member static
310316
# There is a risk of accidentally breaking an internal API that partners rely on though IVT.
311317
dotnet_code_quality.CA1822.api_surface = private
318+
319+
[**/{ExternalAccess}/**/*.{cs,vb}]
320+
321+
# RS0016: Only enable if API files are present
322+
dotnet_public_api_analyzer.require_api_files = true
323+
324+
dotnet_diagnostic.RS0051.severity = error
325+
dotnet_diagnostic.RS0052.severity = error
326+
dotnet_diagnostic.RS0053.severity = error
327+
dotnet_diagnostic.RS0054.severity = error
328+
dotnet_diagnostic.RS0055.severity = error
329+
dotnet_diagnostic.RS0056.severity = error
330+
dotnet_diagnostic.RS0057.severity = error
331+
dotnet_diagnostic.RS0058.severity = error
332+
dotnet_diagnostic.RS0059.severity = error
333+
dotnet_diagnostic.RS0060.severity = error
334+
dotnet_diagnostic.RS0061.severity = error

0 commit comments

Comments
 (0)