I have noticed that I am getting a false positive with this rule. I will tell me that I have 4 levels of IF statements. This is wrong because I only have two.
This is how it seems to work it out
What I think is happening is that it seems to be adding an extra "if" if its an "else if" which it shouldn't be.