Skip to content

banned_chars advises -> for arrows that point the other way #48

Closed

Description

@webern

banned_chars advises -> for every arrow in the ranges U+2190 to U+21FF, U+27F0 to U+27FF, U+2900 to U+297F and U+2798 to U+27AF that has no rule of its own. Many arrows in those ranges point left, up, down or both ways, so the advice is wrong for them.

For example, U+21A9 (leftwards arrow with hook) and U+21D0 (leftwards double arrow) are reported with "write -> instead", which reverses the meaning.

The single-character rules above the ranges (src/lint/banned_chars.rs) already get the direction right for the common arrows. The range defaults could either name the direction per code point (from its Unicode name) or say "an arrow" without suggesting a replacement.

Found while measuring which replacements an automatic fix could apply safely.

Activity

  1. added
    bug
    ai
    area/lint
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    aiarea/lintbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions