brace_linter {lintr}R Documentation

Brace linter

Description

Perform various style checks related to placement and spacing of curly braces:

Usage

brace_linter(allow_single_line = FALSE)

Arguments

allow_single_line

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

Details

Tags

configurable, default, readability, style

See Also

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


[Package lintr version 3.0.2 Index]