Pattern: Misplaced token location
Issue: -
This rule can be configured to check that:
catch
is on the same line as the closing brace fortry
.finally
is on the same line as the closing brace forcatch
.else
is on the same line as the closing brace forif
.- an open brace falls on the same line as its preceding expression.
- preceding whitespace for the specified tokens is present.