csharp-styleguide
csharp-styleguide copied to clipboard
Editorconfig version introduces new compiler/SA errors that must be suppressed
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 I'm also seeing this with IDE 0007: Use var instead of explicit type
.