aws-quickstart / quickstart-eks-cdk-python
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
  • 46% duplication:
    • 9,207 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,261 duplicated lines
  • 768 duplicates
system46% (4,261 lines)
Duplication per Extension
yaml52% (3,838 lines)
py22% (423 lines)
Duplication per Component (primary)
cluster-bootstrap49% (3,828 lines)
demo-apps48% (146 lines)
gatekeeper/policies/constraint-templates19% (135 lines)
gatekeeper/policies/constraints55% (90 lines)
demo-apps/ghost-cdk15% (42 lines)
gatekeeper/policies51% (20 lines)
cluster-codebuild0% (0 lines)
gatekeeper0% (0 lines)

Duplication Between Components (50+ lines)

G cluster-bootstrap cluster-bootstrap demo-apps/ghost-cdk demo-apps/ghost-cdk cluster-bootstrap--demo-apps/ghost-cdk 84

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 768 duplicates...
Size#FoldersFilesLinesCode
738 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1128:1865 (12%)
2805:3542 (12%)
view
366 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1131:1496 (6%)
3177:3542 (6%)
view
366 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
2808:3173 (6%)
3177:3542 (6%)
view
366 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1500:1865 (6%)
2808:3173 (6%)
view
366 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1131:1496 (6%)
1500:1865 (6%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
3056:3169 (1%)
3195:3308 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1518:1631 (1%)
3425:3538 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1379:1492 (1%)
1518:1631 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1379:1492 (1%)
2826:2939 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1748:1861 (1%)
2826:2939 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1149:1262 (1%)
3425:3538 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1518:1631 (1%)
3056:3169 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1149:1262 (1%)
1379:1492 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1748:1861 (1%)
3195:3308 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1518:1631 (1%)
1748:1861 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
3195:3308 (1%)
3425:3538 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1379:1492 (1%)
3195:3308 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
1149:1262 (1%)
1748:1861 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
2826:2939 (1%)
3056:3169 (1%)
view
114 x 2 cluster-bootstrap
cluster-bootstrap
calico-operator.yaml
calico-operator.yaml
2826:2939 (1%)
3425:3538 (1%)
view