# will produce lints
lintr::lint(
text = "box::use(base, rlang)",
linters = box_trailing_commas_linter()
)
lintr::lint(
text = "box::use(
dplyr[select, mutate]
)",
linters = box_trailing_commas_linter()
)
# okay
lintr::lint(
text = "box::use(base, rlang, )",
linters = box_trailing_commas_linter()
)
lintr::lint(
text = "box::use(
dplyr[select, mutate],
)",
linters = box_trailing_commas_linter()
)
Run the code above in your browser using DataLab