Skip to content

Commit 6acc4fc

Browse files
Copilotglennawatson
andcommitted
fix: consolidate NUnit analyzers into existing [*.cs] section in .editorconfig
Co-authored-by: glennawatson <[email protected]>
1 parent 3fadc74 commit 6acc4fc

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

.editorconfig

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -525,34 +525,7 @@ csharp_style_prefer_top_level_statements = true:silent
525525
csharp_style_prefer_primary_constructors = true:suggestion
526526
csharp_style_prefer_local_over_anonymous_function = true:suggestion
527527

528-
# C++ Files
529-
[*.{cpp,h,in}]
530-
curly_bracket_next_line = true
531-
indent_brace_style = Allman
532-
533-
# Xml project files
534-
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
535-
indent_size = 2
536528

537-
# Xml build files
538-
[*.builds]
539-
indent_size = 2
540-
541-
# Xml files
542-
[*.{xml,stylecop,resx,ruleset}]
543-
indent_size = 2
544-
545-
# Xml config files
546-
[*.{props,targets,config,nuspec}]
547-
indent_size = 2
548-
549-
# Shell scripts
550-
[*.sh]
551-
end_of_line = lf
552-
[*.{cmd, bat}]
553-
end_of_line = crlf
554-
555-
[*.cs]
556529
#############################################
557530
# NUnit Analyzers — enable all as errors
558531
#############################################
@@ -665,4 +638,30 @@ dotnet_diagnostic.NUnit3004.severity = error # Field should be disposed in TearD
665638
dotnet_diagnostic.NUnit4001.severity = error # Simplify the Values attribute
666639
dotnet_diagnostic.NUnit4002.severity = error # Use Specific constraint
667640

668-
vsspell_dictionary_languages = en-US
641+
642+
# C++ Files
643+
[*.{cpp,h,in}]
644+
curly_bracket_next_line = true
645+
indent_brace_style = Allman
646+
647+
# Xml project files
648+
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
649+
indent_size = 2
650+
651+
# Xml build files
652+
[*.builds]
653+
indent_size = 2
654+
655+
# Xml files
656+
[*.{xml,stylecop,resx,ruleset}]
657+
indent_size = 2
658+
659+
# Xml config files
660+
[*.{props,targets,config,nuspec}]
661+
indent_size = 2
662+
663+
# Shell scripts
664+
[*.sh]
665+
end_of_line = lf
666+
[*.{cmd, bat}]
667+
end_of_line = crlf

0 commit comments

Comments
 (0)