Skip to content

Commit

Permalink
Exclude CA1861
Browse files Browse the repository at this point in the history
The analyzer is probably right, but the fix would be a named static field, which would reduce code locality. As I don't think these places are hot-paths, we prefer code locality over _potential_ performance increase.

Right now it triggered in these members:
* ObjectReference.GetPathElements
* StringExtensions.IndentLines
* MemberPath.Segments
  • Loading branch information
jnyrup committed Jun 23, 2023
1 parent d792590 commit 60d659a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ dotnet_diagnostic.CA1819.severity = none
dotnet_diagnostic.CA1851.severity = suggestion
# CA1860: Avoid using 'Enumerable.Any()' extension method
dotnet_diagnostic.CA1860.severity = warning
# CA1861: Avoid constant arrays as arguments
dotnet_diagnostic.CA1861.severity = none
# CA2007: Do not directly await a Task
dotnet_diagnostic.CA2007.severity = none
# CA2225: Operator overloads have named alternates
Expand Down

0 comments on commit 60d659a

Please sign in to comment.