I have attempted to add this rule to my editorconfig file in hopes that visual studio users without resharper will address issues they're causing by iterating through ienumerables too often (CA1851)
I know that the editorconfig file is being picked up because when I change spacing rules or disable default warnings, those changes are reflected. However, I am not seeing anything as an inline warning or in the post-build warning list after adding this rule:
dotnet_diagnostic.CA1851.severity = warning
CodePudding user response:
This rule was only shipped with .NET 7, unfortunately. Microsoft has submitted a PR to update the documentation to add an "Introduced version" specifier in order to clearly reflect this.