Smell positive verification

Hey,
I am new to SonarQube and i found it difficult to plugin custom rules for C# (Type-Checking , s2301-Flag-Argument and s1067-Complicated Boolean Expression) also when i looked it up for C# plugins what i found is that i need to write my plugins as diagnostic analyzers and package them as as NuGet after all this the rules will be external rules not internal as they do show up as internal for java and python. However, I decided to write standalone analyzers keeping them semantically same as java and python and use Roslyn to create AST.
When i ran the analysis i got a result for Complicated Boolean Expression which i am confused is actually complicated expression or not? does it contains CBE code smell or not. Also was it a good choice to analyze the C# code this way.


please help me so that i can fix it.

Thanks

Hi @Haroon, welcome to the Community!

I’ve taken the liberty to move this post to the “Report False-positive / False-negative” category, since it sounds to me like what you’re actually reporting is a false positive when analyzing the custom analyzer that you’re writing, is that correct?

If so, then could you please let us know what SonarQube product are you using (Server? Community Build?) and which version? Could you also let us know the ID of the rule that is being raised and exactly on which line of your code? Normally, the “false positive/negative” category asks you for this in the template when you submit your post, but in this case you created it somewhere else so you never saw this :sweat_smile: