Closed
Description
R accepts single-line bodies, without curly braces, for theif
and the for
statements.
Is there any reason why lintr accepts that for if
but not for for
? For instance:
> lint("if (TRUE)\n x")
> lint("for (i in 0)\n x")
<text>:2:2: style: [indentation_linter] Indentation should be 0 spaces but is 2 spaces.