Skip to contents

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

Usage

paren_body_linter()

See also

Examples

# will produce lints
lint(
  text = "function(x)x + 1",
  linters = paren_body_linter()
)
#> ::warning file=<text>,line=1,col=12::file=<text>,line=1,col=12,[paren_body_linter] There should be a space between a right parenthesis and a body expression.

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