Nikhil567
(Nikhil Tiwari)
1
Make sure to read this post before raising a thread here:
Then tell us:
SonarQube reports **Duplicated Lines (%) on New Code = 30.5%** for ruby code
in which I cannot locate any block of ≥10 lines / ≥100 tokens that is
token-identical, either within the file or against any other file in the
project. I believe this is a false positive
-
What language is this for? Ruby
-
Which rule? Duplicated Lines (%) on New Code
-
Why do you believe it’s a false-positive/false-negative?
I cannot locate any block of ≥10 lines / ≥100 tokens that is
token-identical in the file.
-
Are you using
- SonarQube Server - Enterprise Edition v2025.4.3 (113915)
refer file for code
error.txt (4.2 KB)
ganncamp
(G Ann Campbell)
2
Hi,
Could we have a screenshot of the file in SonarQube, including the duplication markers?
Thx,
Ann