apple / swift-source-compat-suite
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 19% duplication:
    • 1,905 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 373 duplicated lines
  • 23 duplicates
system19% (373 lines)
Duplication per Extension
py19% (373 lines)
Duplication per Component (primary)
ROOT19% (373 lines)
utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 23 duplicates...
Size#FoldersFilesLinesCode
50 x 2 ROOT
ROOT
project_future.py
project_future.py
570:619 (3%)
687:736 (3%)
view
15 x 2 ROOT
ROOT
build_incremental.py
builder.py
24:42 (44%)
24:42 (44%)
view
12 x 2 ROOT
ROOT
project_future.py
project_future.py
143:156 (<1%)
192:205 (<1%)
view
11 x 2 ROOT
ROOT
project_future.py
project_future.py
1229:1239 (<1%)
1264:1274 (<1%)
view
11 x 2 ROOT
ROOT
build_incremental.py
builder.py
51:62 (32%)
51:62 (32%)
view
10 x 2 ROOT
ROOT
project_future.py
reproduce.py
620:629 (<1%)
60:69 (9%)
view
10 x 2 ROOT
ROOT
project_future.py
project_future.py
116:127 (<1%)
159:170 (<1%)
view
10 x 2 ROOT
ROOT
project_future.py
project_future.py
1112:1121 (<1%)
1191:1200 (<1%)
view
9 x 2 ROOT
ROOT
project_future.py
project_future.py
1112:1120 (<1%)
1458:1466 (<1%)
view
9 x 2 ROOT
ROOT
project_future.py
project_future.py
1037:1045 (<1%)
1167:1175 (<1%)
view
9 x 2 ROOT
ROOT
project_future.py
project_future.py
1191:1199 (<1%)
1458:1466 (<1%)
view
8 x 2 ROOT
ROOT
project_future.py
project_future.py
1241:1248 (<1%)
1276:1283 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1277:1283 (<1%)
1287:1293 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1252:1258 (<1%)
1277:1283 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1252:1258 (<1%)
1287:1293 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1242:1248 (<1%)
1287:1293 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1153:1159 (<1%)
1166:1172 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1242:1248 (<1%)
1252:1258 (<1%)
view
7 x 2 ROOT
ROOT
project_future.py
project_future.py
1122:1128 (<1%)
1202:1208 (<1%)
view
6 x 2 ROOT
ROOT
project_future.py
project_future.py
1037:1042 (<1%)
1154:1159 (<1%)
view