# will produce lints
lint(
text = "mean (x)",
linters = function_left_parentheses_linter()
)
lint(
text = "stats::sd(c (x, y, z))",
linters = function_left_parentheses_linter()
)
# okay
lint(
text = "mean(x)",
linters = function_left_parentheses_linter()
)
lint(
text = "stats::sd(c(x, y, z))",
linters = function_left_parentheses_linter()
)
lint(
text = "foo <- function(x) (x + 1)",
linters = function_left_parentheses_linter()
)
Run the code above in your browser using DataLab