aws-samples / aws-refarch-shibboleth
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:
    • 2,064 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 530 duplicated lines
  • 29 duplicates
system25% (530 lines)
Duplication per Extension
yaml36% (503 lines)
yml16% (27 lines)
Duplication per Component (primary)
ROOT79% (430 lines)
templates9% (100 lines)
config/shib-idp/edit-webapp/css0% (0 lines)
src0% (0 lines)
functions/source/rotate_sealer_key_secret0% (0 lines)

Duplication Between Components (50+ lines)

G ROOT ROOT templates templates ROOT--templates 96

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 29 duplicates...
Size#FoldersFilesLinesCode
49 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
18:74 (18%)
18:74 (18%)
view
32 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
156:187 (12%)
151:182 (11%)
view
29 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
203:233 (10%)
198:228 (10%)
view
24 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
237:261 (9%)
232:256 (8%)
view
21 x 2 ROOT
templates
aws-shibboleth-idp-novpc.yaml
secrets.yml
76:99 (7%)
23:46 (13%)
view
21 x 2 ROOT
templates
aws-shibboleth-idp-withvpc.yaml
secrets.yml
111:134 (7%)
23:46 (13%)
view
21 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
76:99 (7%)
111:134 (7%)
view
15 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
279:297 (5%)
286:304 (5%)
view
15 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
131:145 (5%)
136:150 (5%)
view
11 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
1:14 (4%)
1:14 (4%)
view
11 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
267:277 (4%)
274:284 (4%)
view
10 x 2 templates
templates
service.yaml
service.yaml
53:62 (7%)
79:88 (7%)
view
9 x 2 ROOT
ROOT
aws-shibboleth-idp-novpc.yaml
aws-shibboleth-idp-withvpc.yaml
195:203 (3%)
182:190 (3%)
view
8 x 2 templates
templates
deployment-pipeline.yaml
deployment-pipeline.yaml
68:75 (2%)
129:136 (2%)
view
7 x 2 ROOT
templates
aws-shibboleth-idp-withvpc.yaml
load-balancer.yaml
20:26 (2%)
5:11 (6%)
view
7 x 2 ROOT
templates
aws-shibboleth-idp-novpc.yaml
load-balancer.yaml
20:26 (2%)
5:11 (6%)
view
6 x 2 templates
templates
load-balancer.yaml
service.yaml
6:11 (5%)
16:21 (4%)
view
6 x 2 templates
templates
ecs-cluster.yaml
load-balancer.yaml
9:14 (4%)
6:11 (5%)
view
6 x 2 ROOT
templates
aws-shibboleth-idp-withvpc.yaml
service.yaml
21:26 (2%)
16:21 (4%)
view
6 x 2 templates
templates
deployment-pipeline.yaml
service.yaml
68:73 (1%)
53:58 (4%)
view