rust-lang / rust-lang/rust-clippy

Deny unmatched left-to-right and right-to-left marker, embedding and override.

Open
#1,389 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-lint T-AST
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

Changing the text direction in a comment without resetting it, may cause differences between the shown and the actual code. (See https://is.gd/35PEW4 for an trivial example.)
This may only apply to a single line, depending on the editor.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked trivial example to reproduce the visual-versus-actual-code problem and determine how unmatched markers behave across a line. Done means Clippy detects and denies unmatched left-to-right/right-to-left markers, embeddings, and overrides; the issue names no file or test, so locating the lint entry point is part of the work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
security, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.