awslabs / aws-build-accumulator
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
  • 17% duplication:
    • 3,357 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 591 duplicated lines
  • 51 duplicates
system17% (591 lines)
Duplication per Extension
html36% (529 lines)
gnu50% (62 lines)
Duplication per Component (primary)
templates37% (591 lines)
lib0% (0 lines)
doc/src/voluptuous-man0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 51 duplicates...
Size#FoldersFilesLinesCode
36 x 2 templates
templates
file-list.jinja.html
pipeline.jinja.html
8:43 (21%)
23:58 (5%)
view
29 x 2 templates
templates
dashboard.jinja.html
file-list.jinja.html
31:59 (7%)
9:37 (16%)
view
29 x 2 templates
templates
dashboard.jinja.html
pipeline.jinja.html
31:59 (7%)
24:52 (4%)
view
22 x 2 templates
templates
pipeline.jinja.html
pipeline.jinja.html
133:154 (3%)
442:463 (3%)
view
20 x 2 templates
templates
outcome_table.jinja.html
pipeline.jinja.html
1:20 (11%)
1:20 (2%)
view
20 x 2 templates
templates
dashboard.jinja.html
pipeline.jinja.html
1:20 (4%)
1:20 (2%)
view
20 x 2 templates
templates
dashboard.jinja.html
outcome_table.jinja.html
1:20 (4%)
1:20 (11%)
view
19 x 2 templates
templates
dashboard.jinja.html
file-list.jinja.html
71:89 (4%)
47:65 (11%)
view
18 x 2 templates
templates
dashboard.jinja.html
outcome_table.jinja.html
252:271 (4%)
108:127 (10%)
view
17 x 2 templates
templates
dashboard.jinja.html
file-list.jinja.html
119:137 (4%)
71:89 (9%)
view
16 x 2 templates
templates
gnu
memory-peak-box.jinja.gnu
runtime-box.jinja.gnu
1:17 (53%)
1:17 (53%)
view
15 x 2 templates
templates
dashboard.jinja.html
outcome_table.jinja.html
281:295 (3%)
127:141 (8%)
view
15 x 2 templates
templates
gnu
memory-trace.jinja.gnu
runtime-box.jinja.gnu
1:16 (45%)
1:16 (50%)
view
15 x 2 templates
templates
gnu
memory-peak-box.jinja.gnu
run-parallelism.jinja.gnu
1:16 (50%)
1:16 (48%)
view
15 x 2 templates
templates
gnu
run-parallelism.jinja.gnu
runtime-box.jinja.gnu
1:16 (48%)
1:16 (50%)
view
15 x 2 templates
templates
gnu
memory-peak-box.jinja.gnu
memory-trace.jinja.gnu
1:16 (50%)
1:16 (45%)
view
15 x 2 templates
templates
gnu
memory-trace.jinja.gnu
run-parallelism.jinja.gnu
1:16 (45%)
1:16 (48%)
view
14 x 2 templates
templates
outcome_table.jinja.html
pipeline.jinja.html
23:36 (7%)
23:36 (2%)
view
14 x 2 templates
templates
file-list.jinja.html
outcome_table.jinja.html
8:21 (8%)
23:36 (7%)
view
13 x 2 templates
templates
dashboard.jinja.html
outcome_table.jinja.html
54:66 (3%)
36:48 (7%)
view