Skip to content

Should assignments be excluded from undesirable_function_linter? #2815

@MichaelChirico

Description

@MichaelChirico
lint(text="foo <- 2", linters=undesirable_function_linter(c(foo=NA)))
# <text>:1:1: style: [undesirable_function_linter] Avoid undesirable function "foo".
# foo <- 2
# ^~~

That looks like a false positive to me. If anything, that should be covered by object_overwrite_linter() if the user wants to avoid masking foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    false-positivecode that shouldn't lint, but does

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions