Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IfBraceChecker doubleLineAllowed property is confusing #5

Closed
diogodadalt opened this issue Jan 7, 2015 · 2 comments
Closed

IfBraceChecker doubleLineAllowed property is confusing #5

diogodadalt opened this issue Jan 7, 2015 · 2 comments

Comments

@diogodadalt
Copy link

The doubleLineAllowed property could lead to misinterpretations. One could think that this allows the following if code:
if (bool_expression)
expression
else
expression

when instead is allowing:
if (bool_expression) expression
else expression

To avoid this kinds of misunderstandings the documentation should provide examples.

@matthewfarwell
Copy link
Member

Yup. Agreed.

@matthewfarwell
Copy link
Member

Fixed by scalastyle/scalastyle#131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants