Is there a linter that points out nested conditionals?

“no true scotsman”? What do you call bad code in this context?

It’s been a problem in my code for years, and I’ve adopted a defensive style where I almost always wrap if-bodies with ( ) as if they were { } in other languages. I still think that’s a wart and a footgun of the language, not the fault of users.

3 Likes