8000 Confusing ":N" on filename typo · Issue #1294 · crate-ci/typos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Confusing ":N" on filename typo #1294
Open
@akouryy

Description

@akouryy

Description

When a typo is in a file name, the diagnostic ends with :N. Because this pattern normally refers to a line number, it looks like the typo is on that line inside the file, not in the name itself.

$ touch hello_wolrd.txt

$ cargo bin typos --version
typos-cli 1.32.0

$ cargo bin typos .
error: `wolrd` should be `world`
  --> ./hello_wolrd.txt:7

A clearer output could be:

error: `wolrd` should be `world`
  --> ./hello_wolrd.txt (filename typo)

This makes it obvious the problem is a filename typo, not a content typo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cliS-triageStatus: New; needs maintainer attention.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0