Skip to content

Commit

Permalink
test(editorconfig): suggest CA1861 in tests
Browse files Browse the repository at this point in the history
Since it's often preferable to write test data inline.

Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Jan 15, 2025
1 parent 2435f02 commit 6fd8155
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NLCaseConvert.UnitTests/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Since tests are public methods, only warn when identifiers for private or
# internal symbols contain underscores.
dotnet_code_quality.CA1707.api_surface = private, internal
# Suggest "Avoid constant arrays as arguments"
# Test data is often written inline for clarity
dotnet_diagnostic.CA1861.severity = suggestion
# Disable CA2007: Consider calling ConfigureAwait on the awaited task
# Calling .ConfigureAwait(false) is contraindicated for xUnit:
# https://xunit.net/xunit.analyzers/rules/xUnit1030
Expand Down

0 comments on commit 6fd8155

Please sign in to comment.