closed_curly_linter {lintr} | R Documentation |
Check that closed curly braces are on their own line unless they follow an else, comma, or closing bracket.
closed_curly_linter(allow_single_line = FALSE)
allow_single_line |
if |
configurable, deprecated, readability, style
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#indenting