aws-samples / api-gateway-auth
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
  • 52% duplication:
    • 901 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 470 duplicated lines
  • 32 duplicates
system52% (470 lines)
Duplication per Extension
yaml65% (470 lines)
Duplication per Component (primary)
ROOT65% (470 lines)
auth-functions/src0% (0 lines)
auth-functions/src/main/java/com/auth0% (0 lines)
auth0-custom-auth-lambda0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
60 x 2 ROOT
ROOT
template-all-auth.yaml
template.yaml
48:113 (21%)
26:91 (39%)
view
26 x 2 ROOT
ROOT
template-all-auth.yaml
template.yaml
187:216 (9%)
133:162 (17%)
view
22 x 2 ROOT
ROOT
template-all-auth.yaml
template.yaml
144:167 (7%)
109:132 (14%)
view
22 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
121:142 (7%)
43:64 (12%)
view
18 x 2 ROOT
ROOT
template-all-auth.yaml
template.yaml
12:31 (6%)
6:25 (11%)
view
14 x 2 ROOT
ROOT
template-all-auth.yaml
template.yaml
32:46 (4%)
93:107 (9%)
view
13 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
178:190 (4%)
100:112 (7%)
view
11 x 2 ROOT
ROOT
template-all-auth.yaml
template-all-auth.yaml
247:257 (3%)
281:291 (3%)
view
10 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
207:216 (3%)
116:125 (5%)
view
10 x 2 ROOT
ROOT
template-all-auth.yaml
template-all-auth.yaml
264:273 (3%)
281:290 (3%)
view
10 x 2 ROOT
ROOT
template-all-auth.yaml
template-all-auth.yaml
247:256 (3%)
264:273 (3%)
view
10 x 2 ROOT
ROOT
template-auth0.yaml
template.yaml
116:125 (5%)
153:162 (6%)
view
8 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
23:31 (2%)
13:21 (4%)
view
8 x 2 ROOT
ROOT
template-auth0.yaml
template.yaml
13:21 (4%)
17:25 (5%)
view
8 x 2 ROOT
ROOT
template-all-auth.yaml
template.yaml
306:314 (2%)
162:170 (5%)
view
8 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
167:174 (2%)
89:96 (4%)
view
7 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
237:243 (2%)
160:166 (4%)
view
7 x 2 ROOT
ROOT
template-all-auth.yaml
template-all-auth.yaml
220:226 (2%)
233:239 (2%)
view
6 x 2 ROOT
ROOT
template-all-auth.yaml
template-auth0.yaml
233:238 (2%)
117:122 (3%)
view
6 x 2 ROOT
ROOT
template-all-auth.yaml
template-all-auth.yaml
233:238 (2%)
300:305 (2%)
view