-
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
Space between function right parenthesis and function open curly #242
Comments
Another issue brought up by that snippet: seems like the else statement should have brackets. Either because it always should or because the if used brackets. If that's correct, I can open a second issue or someone else can. |
I agree about the spacing before the My personal style is to always use braces for all conditionals, but some people feel the opposite and the tidyverse style is mostly silent on this matter (http://style.tidyverse.org/syntax.html#indenting). I guess tidyverse style guide does say to use braces on all multiline conditionals, so it probably should be linted. |
I say: he who controls the default linters has the power 👊. |
I'd like to see a linter that checks for this as well |
Seconding (thirding? fourthing?) this. It could it its own linter, and maybe even one that isn't enabled by default. E.g. |
RStudio does not use lintr, it uses a completely different codebase. |
It feels like lintr should complain about the lack of space between the right paren and opening curly brace here (occurs twice):
The text was updated successfully, but these errors were encountered: