Closed radbasa closed 4 months ago
0.9.0
Second method in https://klmr.me/box/articles/testing.html#test-interfaces-not-implementation-details
box::use(path/to/module_a) impl = attr(module_a, 'namespace') test_that('implementation detail X works', { expect_true(impl$this_works()) })
lintr::lint( code, linters = lintr::linters_with_defaults(defaults = box.linters::rhino_default_linters) )
<text>:2:10: warning: [box.linters::box_unused_attached_mod_linter] Attached module unused. box::use(path/to/module_a) ^~~~~~~~~~~~~~~~
This should not lint.
box.linters version
0.9.0
Sample source code to lint
Second method in https://klmr.me/box/articles/testing.html#test-interfaces-not-implementation-details
Lint command used
lintr::lint( code, linters = lintr::linters_with_defaults(defaults = box.linters::rhino_default_linters) )
Lint result
Expected result
This should not lint.