View source: R/box_func_import_count_linter.R
box_func_import_count_linter | R Documentation |
box
library function import count linterChecks that function imports do not exceed the defined max
.
box_func_import_count_linter(max = 8L)
max |
Maximum function imports allowed between |
For use in rhino
, see the
Explanation: Rhino style guide
to learn about the details.
A custom linter function for use with r-lib/lintr
.
# 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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.