Support switch/case AndPattern #4880
Labels
Area: CFG/SE
CFG and SE related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Projects
Description
Please add support for switch/case AndPattern.
Repro steps
The following simple C# 8 code example will generate a
System.NotSupportedException
because the use of the AndPattern when performing a sonar analysis:Known workarounds
Refactor code to not use 'AndPattern'.
Related information
C# 8
Sonar scanner version: 1.20.0. (https://sonarcloud.io/documentation/analysis/scan/sonarscanner-for-azure-devops/)
Analyzer ouput:
The text was updated successfully, but these errors were encountered: