WiseTechGlobal / WTG.Analyzers

Analyzers from WiseTech Global to enforce our styles, behaviours, and prevent common mistakes.
Other
16 stars 3 forks source link

Added rule to forbid nested conditional operators. #70

Closed brian-reichle closed 5 years ago

brian-reichle commented 5 years ago

Addresses the core concern of #10, though I'm starting to think that we should be forbidding more than just other conditional expressions from appearing withing a conditional expression.

yaakov-h commented 5 years ago

Aww, I was gonna look at this one tomorrow.

Looking good so far.

What else were you thinking of prohibiting inside a conditional expression?

brian-reichle commented 5 years ago

I was thinking we should prohibit lambda expressions nested inside a conditional expression, or at least block statements (eg).