audaciaconsulting/Audacia.CodeAnalysis

SA1010 reporting on incorrect spacing

Closed this issue · 0 comments

SA1010 says there should not be a space here, but there should be:

image

If you apply the fix, SA1002 and IDE0055 both report an issue:

image

Think this is because the version of StyleCop.Analyzers referenced in Audacia.CodeAnalysis is not aware of a lot of C#11 features.

There is a somewhat related issue here: DotNetAnalyzers/StyleCopAnalyzers#3503

Updating StyleCop.Analyzers locally to 1.2.0-beta.556 fixes the issue:

image

I have had a skim through the changelogs of StyleCop.Analyzers and cannot see any big changes, mostly seems like tweaks to existing rules in order to support newer C# features, so should be an easy upgrade