astral-sh / astral-sh/ruff

Sonar RSPEC-1192 (String literals should not be duplicated)

Open
#3,574 4 comments 0 reactions 0 assignees View on GitHub
needs-decision rule
Dominant language
Rust
Stars
49.7k
Forks
2.4k
Avg merge
2d 1h
Merged PRs (30d)
458

Description

Hi all!
Tell me pls - now there is a check for duplicate value?

_For example in Sonar: https://rules.sonarsource.com/python/tag/design/RSPEC-1192_

Contributor guide

Open the contributing guide

Research direction

The issue asks whether Ruff checks for duplicated string literals according to Sonar RSPEC-1192. Start by checking Ruff’s existing rule catalog and documentation, then compare comparable Python lint rules and their tests. Done means establishing whether this check exists; if it does not, the scope and expected behavior need to be defined before implementation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.