Open modestotech opened 1 month ago
Version: 1.2.0-beta.556 .NET version: 8
I'm working with a switch expression like below:
switch
This gives the SA1009 error.
StyleCop wants me to put it like this:
Doesn't look nice, and when reading the in the docs about SA1009 it seems there are some exceptions to this rule (cast), so maybe some logic needed here to handle switch expressions.
Version: 1.2.0-beta.556 .NET version: 8
I'm working with a![image](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/assets/31730051/b997adcc-c6d5-4336-9b8a-59575c9d36a8)
switch
expression like below:This gives the SA1009 error.
StyleCop wants me to put it like this:![image](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/assets/31730051/6c8525a4-58b3-4a19-bb72-7f423d7956c3)
Doesn't look nice, and when reading the in the docs about SA1009 it seems there are some exceptions to this rule (cast), so maybe some logic needed here to handle switch expressions.