Skip to content

Commit

Permalink
Move CA1304 and CA1305 enablement to production code only (not test c…
Browse files Browse the repository at this point in the history
…ode)
  • Loading branch information
bradwilson committed Oct 27, 2023
1 parent e139d77 commit 52b6638
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,3 @@ dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

#### Code quality rules ####

# Analyzer severity

dotnet_diagnostic.CA1304.severity = error # Specify CultureInfo
dotnet_diagnostic.CA1305.severity = error # Specify IFormatProvider
5 changes: 5 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.cs]
# Analyzer severity

dotnet_diagnostic.CA1304.severity = error # Specify CultureInfo
dotnet_diagnostic.CA1305.severity = error # Specify IFormatProvider
1 change: 1 addition & 0 deletions xunit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ VisualStudioVersion = 17.0.31709.452
MinimumVisualStudioVersion = 14.0.22823.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{DAED8494-AC8A-4C67-A8F1-616D95ECC302}"
ProjectSection(SolutionItems) = preProject
src\.editorconfig = src\.editorconfig
src\Directory.Build.props = src\Directory.Build.props
src\Directory.Build.targets = src\Directory.Build.targets
EndProjectSection
Expand Down

0 comments on commit 52b6638

Please sign in to comment.