# will produce lints
lintr::lint(
text = "box::use(package[one, two, three, four, five, six, seven, eight, nine])",
linters = box_func_import_count_linter()
)
lintr::lint(
text = "box::use(package[one, two, three, four])",
linters = box_func_import_count_linter(3)
)
# okay
lintr::lint(
text = "box::use(package[one, two, three, four, five])",
linters = box_func_import_count_linter()
)
lintr::lint(
text = "box::use(package[one, two, three])",
linters = box_func_import_count_linter(3)
)
Run the code above in your browser using DataLab