paren_body_linter: Parenthesis before body linter

paren_body_linterR Documentation

Parenthesis before body linter

Description

Check that there is a space between right parenthesis and a body expression.

Usage

paren_body_linter()

Tags

default, readability, style

See Also

Examples

# will produce lints
lint(
  text = "function(x)x + 1",
  linters = paren_body_linter()
)

# okay
lint(
  text = "function(x) x + 1",
  linters = paren_body_linter()
)


r-lib/lintr documentation built on Dec. 20, 2024, 7:24 p.m.