Skip to content

seq_linter should catch seq(length()), redirecting to seq_along() #1467

Closed
@MichaelChirico

Description

@MichaelChirico
seq(0)
# [1] 1 0

i.e., seq(length(x)) is subject to the same unexpected/error-prone edge-case behavior as other usages caught by seq_linter()

Metadata

Metadata

Assignees

No one assigned

    Labels

    false-negativecode that should lint, but doesn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions