# will produce lints
lintr::lint(
text = "box::use(base[...])",
linters = box_universal_import_linter()
)
lintr::lint(
text = "box::use(path/to/file[...])",
linters = box_universal_import_linter()
)
# okay
lintr::lint(
text = "box::use(base[print])",
linters = box_universal_import_linter()
)
lintr::lint(
text = "box::use(path/to/file[do_something])",
linters = box_universal_import_linter()
)
Run the code above in your browser using DataLab