5 views

astral-sh/ruff

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

Rust★ 51,016+350 that day#7 on trending

Analyzed November 8, 2026 at 1091a8b (main) with jscpd v5 in 8.4s. Code duplication stayed at 5.79% across 2 appearances since Nov 7.

D47.7/100
Project health990,486 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,381 of 818,683 lines
3,725clones in code
2,110code files of 5,098 scanned
6.98%duplicated over all files · 7,230 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,8463,67846,7945.93%
python20322,169373471.57%
tsx296,53392133.26%
typescript137341273.68%
bash8401000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
rust1,999856,7024,80262,2297.26%
python1,865259,9421,07415,5045.96%
text16513,3583952,39117.9%
markdown655316,83435417,2095.43%
toml1478,4542603,20037.85%
markup834,2581702,46157.8%
yaml436,997931,05515.08%
txt2219,373695462.82%
tsx296,53392133.26%
css4583213222.64%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 8, 2026#751,016 (+350)5,0981,504,5237,2306.98%5.79%D 47.71091a8b
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.