awslabs / aws-refarch-cross-account-pipeline
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
  • 34% duplication:
    • 623 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 212 duplicated lines
  • 35 duplicates
system34% (212 lines)
Duplication per Extension
yaml34% (212 lines)
Duplication per Component (primary)
ToolsAcct30% (139 lines)
TestAccount41% (48 lines)
DevAccount49% (25 lines)

Duplication Between Components (50+ lines)

G TestAccount TestAccount ToolsAcct ToolsAcct TestAccount--ToolsAcct 78 DevAccount DevAccount DevAccount--TestAccount 62

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 35 duplicates...
Size#FoldersFilesLinesCode
13 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
64:77 (3%)
187:199 (3%)
view
11 x 2 DevAccount
TestAccount
toolsacct-codepipeline-codecommit.yaml
toolsacct-codepipeline-cloudformation...
23:33 (21%)
26:36 (9%)
view
10 x 2 TestAccount
ToolsAcct
toolsacct-codepipeline-cloudformation...
code-pipeline.yaml
112:121 (8%)
187:196 (2%)
view
10 x 2 TestAccount
ToolsAcct
toolsacct-codepipeline-cloudformation...
code-pipeline.yaml
112:121 (8%)
64:74 (2%)
view
9 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
pre-reqs.yaml
19:27 (2%)
12:20 (10%)
view
8 x 2 DevAccount
TestAccount
toolsacct-codepipeline-codecommit.yaml
toolsacct-codepipeline-cloudformation...
52:59 (15%)
50:57 (6%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
255:261 (1%)
282:288 (1%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
320:326 (1%)
347:353 (1%)
view
7 x 2 TestAccount
ToolsAcct
toolsacct-codepipeline-cloudformation...
code-pipeline.yaml
63:69 (6%)
134:140 (1%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
296:303 (1%)
361:368 (1%)
view
7 x 2 TestAccount
ToolsAcct
toolsacct-codepipeline-cloudformation...
code-pipeline.yaml
63:69 (6%)
45:51 (1%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
271:278 (1%)
336:343 (1%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
332:338 (1%)
357:363 (1%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
267:273 (1%)
292:298 (1%)
view
7 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
45:51 (1%)
134:140 (1%)
view
6 x 2 ToolsAcct
ToolsAcct
code-pipeline.yaml
code-pipeline.yaml
255:260 (1%)
320:325 (1%)
view
6 x 2 TestAccount
ToolsAcct
toolsacct-codepipeline-cloudformation...
code-pipeline.yaml
41:46 (5%)
150:155 (1%)
view
6 x 2 TestAccount
ToolsAcct
toolsacct-codepipeline-cloudformation...
code-pipeline.yaml
41:46 (5%)
61:66 (1%)
view
6 x 2 DevAccount
TestAccount
toolsacct-codepipeline-codecommit.yaml
toolsacct-codepipeline-cloudformation...
23:28 (11%)
63:68 (5%)
view
6 x 2 DevAccount
ToolsAcct
toolsacct-codepipeline-codecommit.yaml
code-pipeline.yaml
39:44 (11%)
61:66 (1%)
view