awslabs / aws-lambda-redshift-loader
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
  • 22% duplication:
    • 4,304 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 956 duplicated lines
  • 92 duplicates
system22% (956 lines)
Duplication per Extension
js18% (736 lines)
yaml62% (220 lines)
Duplication per Component (primary)
ROOT23% (956 lines)
sample/scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 92 duplicates...
Size#FoldersFilesLinesCode
61 x 2 ROOT
ROOT
deploy-vpc.yaml
deploy.yaml
36:97 (58%)
17:78 (68%)
view
23 x 2 ROOT
ROOT
deploy-vpc.yaml
deploy.yaml
100:123 (22%)
79:102 (25%)
view
21 x 2 ROOT
ROOT
upgrades.js
upgrades.js
77:109 (11%)
197:228 (11%)
view
20 x 2 ROOT
ROOT
setup-file.js
setup.js
440:465 (5%)
433:458 (5%)
view
14 x 2 ROOT
ROOT
setup-file.js
setup.js
32:47 (4%)
28:43 (3%)
view
13 x 2 ROOT
ROOT
setup-file.js
setup.js
64:77 (3%)
59:72 (3%)
view
13 x 2 ROOT
ROOT
deploy-admin-host.yaml
deploy-vpc.yaml
92:104 (8%)
51:63 (12%)
view
13 x 2 ROOT
ROOT
deploy-admin-host.yaml
deploy.yaml
92:104 (8%)
32:44 (14%)
view
12 x 2 ROOT
ROOT
setup-file.js
setup.js
423:437 (3%)
420:432 (3%)
view
12 x 2 ROOT
ROOT
index.js
index.js
696:708 (1%)
1373:1385 (1%)
view
12 x 2 ROOT
ROOT
index.js
index.js
561:573 (1%)
1319:1331 (1%)
view
11 x 2 ROOT
ROOT
batchOperations.js
common.js
7:18 (3%)
15:26 (1%)
view
11 x 2 ROOT
ROOT
setup-file.js
setup.js
339:350 (3%)
327:338 (2%)
view
10 x 2 ROOT
ROOT
setup-file.js
setup.js
89:104 (2%)
83:98 (2%)
view
10 x 2 ROOT
ROOT
index.js
index.js
560:570 (1%)
1372:1382 (1%)
view
10 x 2 ROOT
ROOT
setup-file.js
setup.js
15:24 (2%)
17:26 (2%)
view
10 x 2 ROOT
ROOT
deploy-admin-host.yaml
deploy.yaml
121:130 (6%)
76:85 (11%)
view
9 x 2 ROOT
ROOT
batchOperations.js
index.js
9:18 (3%)
54:63 (<1%)
view
9 x 2 ROOT
ROOT
index.js
index.js
928:937 (<1%)
1373:1382 (<1%)
view
9 x 2 ROOT
ROOT
common.js
common.js
249:258 (1%)
290:299 (1%)
view