elishalom / netcodemetrics

Other
33 stars 13 forks source link

Operater ".?" is counted incorrectly #5

Open mobiledeve opened 7 years ago

mobiledeve commented 7 years ago

if (valueTable==null || valueTable.Rows==null) { // } and if (valueTable?.Rows==null) { // } should have same complexity value, because they are logically identical and they both have 2 decision points.

But currently if (valueTable?.Rows==null) is counted as 1 decision point.