Skip to content

cyclocomp warning when not using cyclocomp_linter #2909

@TimTaylor

Description

@TimTaylor

fdb001c moved the cyclocomp namespace check which now means having a .lintr.R file like the following

linters <- all_linters(
    indentation_linter(indent = 4L),
    cyclocomp_linter = NULL
)

causes a package check to become somewhat noisy and confusing, e.g.

lintr::lint_package()
#> Warning message:
#> Warning encountered while loading config:
#> Caused by warning:
#> ! Cyclocomp complexity is computed using `cyclocomp::cyclocomp()`.
#> ℹ Please install the needed cyclocomp package. 

Only noticed this change today whilst playing with the dev version of lintr. Any chance this could be improved?

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