Skip to contents

Check that opening curly braces are never on their own line and are always followed by a newline.

Usage

open_curly_linter(allow_single_line = FALSE)

Arguments

allow_single_line

if TRUE, allow an open and closed curly pair on the same line.

See also

linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#indenting