We use sonar cloud to perform check in the VSTS pipeline. Some of the bugs reported seem to be apparently wrong.
if (entityBaselineBlocks?.Any() ?? false)
it’s a combination of two c# features:
null propagation
null coalescing operator
Using that combination we’re doing two checks in one if statement. However, sonar report says that the code underneath that condition will be never executed. Could you please check and make appropriate changes?
I would hope this gets fixed someday, null coalescing checks are far too handy to not use and the number of false positives makes me want to just put the warning to be ignored.