Open IndrajeetPatil opened 2 months ago
cf. https://style.tidyverse.org/syntax.html?q=empty%20curly%20braces#indenting
library(lintr) lint( text = "while (waiting_for_something()) { }", linters = all_linters() ) #> ℹ No lints found. lint( text = "while (waiting_for_something()) { }", linters = all_linters() ) #> ℹ No lints found.
Created on 2024-10-02 with reprex v2.1.1
Instead of no lint, the {lintr} should recommend:
{lintr}
while (waiting_for_something()) {}
Ideally, {styler} takes care of this https://github.com/r-lib/styler/issues/1232
{styler}
cf. https://style.tidyverse.org/syntax.html?q=empty%20curly%20braces#indenting
Created on 2024-10-02 with reprex v2.1.1
Instead of no lint, the
{lintr}
should recommend: