aws-samples / amazon-route-53-resolver-dns-firewall-automation-examples
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
  • 25% duplication:
    • 311 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 80 duplicated lines
  • 4 duplicates
system25% (80 lines)
Duplication per Extension
yaml17% (40 lines)
js49% (40 lines)
Duplication per Component (primary)
cfn-templates17% (40 lines)
src49% (40 lines)

Duplication Between Components (50+ lines)

G cfn-templates cfn-templates src src cfn-templates--src 80

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
15 x 2 Abuse.ch/cfn-templates
Abuse.ch/src
R53AbuseAutoUpdate.yaml
R53AbuseAutoUpdate.js
195:209 (6%)
64:78 (18%)
view
12 x 2 Abuse.ch/cfn-templates
Abuse.ch/src
R53AbuseAutoUpdate.yaml
R53AbuseAutoUpdate.js
182:193 (5%)
51:62 (14%)
view
7 x 2 Abuse.ch/cfn-templates
Abuse.ch/src
R53AbuseAutoUpdate.yaml
R53AbuseAutoUpdate.js
133:142 (3%)
2:11 (8%)
view
6 x 2 Abuse.ch/cfn-templates
Abuse.ch/src
R53AbuseAutoUpdate.yaml
R53AbuseAutoUpdate.js
219:224 (2%)
83:88 (7%)
view