aws-quickstart / quickstart-kubernetes-resource-provider
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
  • 43% duplication:
    • 1,507 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 662 duplicated lines
  • 114 duplicates
system43% (662 lines)
Duplication per Extension
yaml65% (480 lines)
py22% (168 lines)
yml36% (14 lines)
Duplication per Component (primary)
apply89% (188 lines)
get79% (188 lines)
ROOT35% (118 lines)
apply/src/awsqs_kubernetes_resource18% (104 lines)
get/src/awsqs_kubernetes_get36% (64 lines)

Duplication Between Components (50+ lines)

G apply apply get get apply--get 376 ROOT ROOT apply--ROOT 215 ROOT--get 215 apply/src/awsqs_kubernetes_resource apply/src/awsqs_kubernetes_resource get/src/awsqs_kubernetes_get get/src/awsqs_kubernetes_get apply/src/awsqs_kubernetes_resource--get/src/awsqs_kubernetes_get 128

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 114 duplicates...
Size#FoldersFilesLinesCode
93 x 2 apply
get
deploy.template.yaml
deploy.template.yaml
1:93 (59%)
1:93 (60%)
view
62 x 2 apply
get
deploy.template.yaml
deploy.template.yaml
95:159 (39%)
94:158 (40%)
view
29 x 2 ROOT
get
contract_test_exports.template.yaml
deploy.template.yaml
63:91 (16%)
43:71 (18%)
view
29 x 2 apply
ROOT
deploy.template.yaml
contract_test_exports.template.yaml
43:71 (18%)
63:91 (16%)
view
27 x 2 apply
ROOT
deploy.template.yaml
execution-role.template.yaml
3:29 (17%)
2:28 (45%)
view
27 x 2 ROOT
get
contract_test_exports.template.yaml
deploy.template.yaml
27:53 (15%)
4:30 (17%)
view
27 x 2 ROOT
get
execution-role.template.yaml
deploy.template.yaml
2:28 (45%)
3:29 (17%)
view
27 x 2 apply
ROOT
deploy.template.yaml
contract_test_exports.template.yaml
4:30 (17%)
27:53 (15%)
view
26 x 2 ROOT
ROOT
contract_test_exports.template.yaml
execution-role.template.yaml
27:52 (15%)
3:28 (43%)
view
26 x 2 apply/src/awsqs_kubernetes_resource
get/src/awsqs_kubernetes_get
models.py
models.py
6:43 (38%)
6:43 (41%)
view
26 x 2 apply
get
resource-role.yaml
resource-role.yaml
1:27 (74%)
1:27 (57%)
view
14 x 2 apply/src/awsqs_kubernetes_resource
get/src/awsqs_kubernetes_get
models.py
models.py
72:94 (20%)
68:90 (22%)
view
13 x 2 ROOT
ROOT
contrat_test_role.template.yaml
execution-role.template.yaml
1:13 (20%)
2:14 (21%)
view
13 x 2 apply
ROOT
deploy.template.yaml
contrat_test_role.template.yaml
3:15 (8%)
1:13 (20%)
view
13 x 2 ROOT
get
contrat_test_role.template.yaml
deploy.template.yaml
1:13 (20%)
3:15 (8%)
view
12 x 2 ROOT
ROOT
contract_test_exports.template.yaml
contrat_test_role.template.yaml
27:38 (7%)
2:13 (18%)
view
11 x 2 apply/src/awsqs_kubernetes_resource
get/src/awsqs_kubernetes_get
models.py
models.py
53:63 (16%)
51:61 (17%)
view
10 x 2 ROOT
get
contrat_test_role.template.yaml
resource-role.yaml
1:10 (15%)
6:15 (22%)
view
10 x 2 apply
get
resource-role.yaml
deploy.template.yaml
6:15 (28%)
3:12 (6%)
view
10 x 2 get
get
deploy.template.yaml
resource-role.yaml
3:12 (6%)
6:15 (22%)
view