csharp-styleguide icon indicating copy to clipboard operation
csharp-styleguide copied to clipboard

Editorconfig version introduces new compiler/SA errors that must be suppressed

Open pakdev opened this issue 1 year ago • 1 comments

Updating to the latest version of the analyzers (2.0.13) results in several compiler/SA errors. Both @epetersoni and myself have seen at least these errors in our projects:

  • IDE0008: Use explicit type instead of var
  • IDE0022: Use expression body for methods
  • IDE0045: Convert to conditional expression for assignment (I made this a suggestion)
  • IDE0046: Convert to conditional expression for return (I made this a suggestion)
  • IDE0058: Remove unnecessary expression value
  • SA1206 / IDE0036: Declaration keywords should follow order (these conflict e.g. required public vs. public required)

pakdev avatar Oct 12 '23 20:10 pakdev

@pakdev I'm also seeing this with IDE 0007: Use var instead of explicit type.

epetersoni avatar Oct 20 '23 14:10 epetersoni