-
Notifications
You must be signed in to change notification settings - Fork 186
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
New if_else_match_braces_linter #983
Conversation
In favor of making this a default linter, although I don't see explicit mention of this rule in https://style.tidyverse.org/syntax.html#control-flow if (test) a else {
long_code
}
if (test) {
long_code
} else a by default? |
FWIW styler agrees:
|
Yeah this is definitely required by tidyverse style. |
OK, done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Part of #962
We might consider this one to be a default linter btw, it's basically part of the style guide.