Skip to content

seq_linter() gives the wrong message for n:1 lints #1542

@MichaelChirico

Description

@MichaelChirico

The result message should mention rev(), but currently it doesn't:

lint(text = ".N:1", linters = seq_linter())
# <text>:1:1: warning: [seq_linter] .N:1 is likely to be wrong in the empty edge case. Use seq_len(1) instead.
# .N:1
# ^~~~

It also says seq_len(1) instead of seq_len(.N)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions