Skip to content

implicit_integer_linter(allow_colon=TRUE) throws for negative integer #2673

@MichaelChirico

Description

@MichaelChirico
lint("-1:3\n", implicit_integer_linter(allow_colon=TRUE))
# <text>:1:3: style: [implicit_integer_linter] Use -1L or -1.0 to avoid implicit integers.
# -1:3
#  ~^

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