astral-sh/ruff

An extremely fast Python linter and code formatter, written in Rust.

Rust★ 50,738+169 that day#11 on trending

Analyzed November 7, 2026 at 6f86f83 (main) with jscpd v5 in 6.6s.

D47.7/100
Project health990,462 lines of code (L)
Duplication57
7% in rust, python, tsx, typescript, bash, javascript, dot, docker
Dead code57
6.2%
Complexity39
67.7%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

5.79%duplicated code · 47,379 of 818,659 lines
3,725clones in code
2,110code files of 5,098 scanned
6.97%duplicated over all files · 7,228 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 3 generated files: crates/ruff_linter/src/rules/ruff/rules/confusables.rs, crates/ruff_python_stdlib/src/sys/builtin_modules.rs, crates/ruff_python_stdlib/src/sys/known_stdlib.rs.

Largest clones in the code

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
rust1,857788,8223,67846,7925.93%
python20322,169373471.57%
tsx296,53392133.26%
typescript137341273.68%
bash8401000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
rust1,999856,6784,80262,2277.26%
python1,865259,8801,07415,5055.97%
text16513,3583952,39117.9%
markdown655316,67135217,0255.38%
toml1478,4482603,20037.88%
markup834,2581702,46157.8%
yaml436,997931,05515.08%
txt2219,373695462.82%
tsx296,53392133.26%
css4583213222.64%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 7, 2026#1150,738 (+169)5,0981,504,2687,2286.97%5.79%D 47.76f86f83

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.