# will produce lints
lint(
text = "x %>% sum(., na.rm = TRUE)",
linters = unnecessary_placeholder_linter()
)
# okay
lint(
text = "x %>% sum(na.rm = TRUE)",
linters = unnecessary_placeholder_linter()
)
lint(
text = "x %>% lm(data = ., y ~ z)",
linters = unnecessary_placeholder_linter()
)
lint(
text = "x %>% outer(., .)",
linters = unnecessary_placeholder_linter()
)
Run the code above in your browser using DataLab