Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LINT_BUG]: re-exported objects are flagged as unused #152

Open
caldwellst opened this issue Nov 4, 2024 · 0 comments
Open

[LINT_BUG]: re-exported objects are flagged as unused #152

caldwellst opened this issue Nov 4, 2024 · 0 comments

Comments

@caldwellst
Copy link

box.linters version

0.10.5

Sample source code to lint

src/a.R

#' @export
a <- function(x) sum(x)

src/init.R

#' @export
box::use(src/a[...])

.Rprofile

options(box.path = getwd())

Lint command used

lintr::lint_dir(
linters = lintr::linters_with_defaults(defaults = box.linters::box_default_linters)
)

Lint result

[box_unused_attached_mod_linter] Three-dots attached module unused.

Expected result

Should successfully lint, as the use of __init__.R files to re-export objects from scripts at the module level is part of the {box} paradigm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant