aws-quickstart / quickstart-compliance-uk-official
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
  • 21% duplication:
    • 3,552 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 754 duplicated lines
  • 85 duplicates
system21% (754 lines)
Duplication per Extension
yaml22% (754 lines)
Duplication per Component (primary)
templates/compliance-controls29% (290 lines)
templates/sampleApplication21% (187 lines)
templates/tgw18% (91 lines)
templates/defaultVPC36% (75 lines)
templates/outboundProxy20% (71 lines)
templates/vpc9% (31 lines)
templates/testInstances5% (9 lines)
assets/landing0% (0 lines)

Duplication Between Components (50+ lines)

G templates/compliance-controls templates/compliance-controls templates/sampleApplication templates/sampleApplication templates/compliance-controls--templates/sampleApplication 394 templates/defaultVPC templates/defaultVPC templates/compliance-controls--templates/defaultVPC 81 templates/defaultVPC--templates/sampleApplication 69 templates/vpc templates/vpc templates/defaultVPC--templates/vpc 68 templates/outboundProxy templates/outboundProxy templates/tgw templates/tgw templates/outboundProxy--templates/tgw 70

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 85 duplicates...
Size#FoldersFilesLinesCode
152 x 2 templates/compliance-controls
templates/sampleApplication
compliance-controls.yaml
sampleApplication.yaml
180:332 (15%)
576:728 (17%)
view
21 x 2 templates/defaultVPC
templates/vpc
addDefaultVPCFlowLogs.yaml
vpc.yaml
135:156 (10%)
215:236 (6%)
view
20 x 2 templates/defaultVPC
templates/sampleApplication
addDefaultVPCFlowLogs.yaml
sampleApplication.yaml
158:177 (9%)
582:601 (2%)
view
20 x 2 templates/compliance-controls
templates/defaultVPC
compliance-controls.yaml
addDefaultVPCFlowLogs.yaml
186:205 (2%)
158:177 (9%)
view
19 x 2 templates/compliance-controls
templates/compliance-controls
compliance-controls.yaml
compliance-controls.yaml
424:442 (1%)
528:546 (1%)
view
14 x 2 templates/compliance-controls
templates/sampleApplication
compliance-controls.yaml
sampleApplication.yaml
424:437 (1%)
780:793 (1%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
297:310 (2%)
331:344 (2%)
view
14 x 2 templates/compliance-controls
templates/sampleApplication
compliance-controls.yaml
sampleApplication.yaml
528:541 (1%)
780:793 (1%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
297:310 (2%)
399:412 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
297:310 (2%)
433:446 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
297:310 (2%)
365:378 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
331:344 (2%)
467:480 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
331:344 (2%)
399:412 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
399:412 (2%)
433:446 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
365:378 (2%)
399:412 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
297:310 (2%)
467:480 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
331:344 (2%)
365:378 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
365:378 (2%)
467:480 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
331:344 (2%)
433:446 (2%)
view
14 x 2 templates/tgw
templates/tgw
tgw.yaml
tgw.yaml
399:412 (2%)
467:480 (2%)
view