awslabs / aws-crt-builder
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
  • 6% duplication:
    • 3,427 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 219 duplicated lines
  • 34 duplicates
system6% (219 lines)
Duplication per Extension
py6% (219 lines)
Duplication per Component (primary)
builder/imports23% (110 lines)
builder/core4% (109 lines)
ROOT0% (0 lines)
builder0% (0 lines)
builder/actions0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 34 duplicates...
Size#FoldersFilesLinesCode
17 x 2 builder/core
builder/core
data.py
data.py
324:340 (3%)
345:361 (3%)
view
14 x 2 builder/imports
builder/imports
dockcross.py
llvm.py
12:28 (34%)
97:113 (36%)
view
13 x 2 builder/core
builder/core
data.py
data.py
345:357 (2%)
366:378 (2%)
view
13 x 2 builder/imports
builder/imports
dockcross.py
gcc.py
12:26 (31%)
13:27 (44%)
view
13 x 2 builder/core
builder/core
data.py
data.py
324:336 (2%)
366:378 (2%)
view
13 x 2 builder/imports
builder/imports
gcc.py
llvm.py
13:27 (44%)
97:111 (34%)
view
12 x 2 builder/core
builder/core
data.py
data.py
180:193 (2%)
195:208 (2%)
view
11 x 2 builder/imports
builder/imports
llvm.py
msvc.py
114:127 (28%)
29:42 (40%)
view
10 x 2 builder/imports
builder/imports
gcc.py
msvc.py
18:32 (34%)
18:32 (37%)
view
9 x 2 builder/imports
builder/imports
gcc.py
llvm.py
34:43 (31%)
118:127 (23%)
view
9 x 2 builder/imports
builder/imports
gcc.py
msvc.py
34:43 (31%)
33:42 (33%)
view
8 x 2 builder/imports
builder/imports
dockcross.py
msvc.py
17:26 (19%)
18:27 (29%)
view
8 x 2 builder/imports
builder/imports
llvm.py
msvc.py
102:111 (21%)
18:27 (29%)
view
7 x 2 builder/imports
builder/imports
dockcross.py
jdk.py
19:28 (17%)
31:40 (8%)
view
7 x 2 builder/imports
builder/imports
dockcross.py
libcrypto.py
19:28 (17%)
28:37 (11%)
view
7 x 2 builder/imports
builder/imports
jdk.py
ndk.py
31:40 (8%)
32:41 (18%)
view
7 x 2 builder/imports
builder/imports
dockcross.py
ndk.py
19:28 (17%)
32:41 (18%)
view
7 x 2 builder/imports
builder/imports
jdk.py
libcrypto.py
31:40 (8%)
28:37 (11%)
view
7 x 2 builder/imports
builder/imports
llvm.py
nodejs.py
97:103 (18%)
25:31 (8%)
view
7 x 2 builder/imports
builder/imports
libcrypto.py
ndk.py
28:37 (11%)
32:41 (18%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 3 builder/imports
builder/imports
builder/imports
llvm.py
dockcross.py
gcc.py
0:0 
0:0 
0:0 
view