Learn R Programming

lintr (version 3.0.2)

closed_curly_linter: Closed curly linter

Description

Check that closed curly braces are on their own line unless they follow an else, comma, or closing bracket.

Usage

closed_curly_linter(allow_single_line = FALSE)

Arguments

allow_single_line

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

Tags

configurable, deprecated, readability, style

See Also

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