Closed schempy closed 8 years ago
Hm, maybe requireNewlineBeforeSingleStatementsInIf
name could be more explanatory?
Sure, that makes sense. Could also allow options to work with if/else, for etc... Don't want to make it more complicated than it needs. What do you think?
Could also allow options to work with if/else, for etc...
I think we can consider using different rule for that?
Sure another rule for those makes sense. I'll change the rule name to be requireNewlineBeforeSingleStatementsInIf
I changed the rule name to requireNewlineBeforeSingleStatementsInIf
If things look OK I can squash the commits if you'd like.
requireNewLineBeforeSingleStatements: New rule
Enforce newlines for expression statements within if/else
Fixes #1829 - issue