Skip to content

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

@caldwellst

Description

@caldwellst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions