lintr::lint(text = "function() function(x) {\n x\n}")
#> <text>:1:1: style: [brace_linter] Any function spanning multiple lines should use curly braces.
#> function() function(x) {
#> ^~~~~~~~~~~~~~~~~~~~~~~~
Created on 2022-12-07 with reprex v2.0.2
This could optionally be allowed in addition to
# always allowed
function() {
function(x) {
x
}
}
# could optionally be allowed
function() function(x) {
x
}
Created on 2022-12-07 with reprex v2.0.2
This could optionally be allowed in addition to