aws-samples / data-lake-as-code
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
  • 14% duplication:
    • 1,242 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 181 duplicated lines
  • 17 duplicates
system14% (181 lines)
Duplication per Extension
ts10% (115 lines)
py48% (66 lines)
Duplication per Component (primary)
lib/constructs12% (115 lines)
scripts48% (66 lines)
lib0% (0 lines)
lib/stacks0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
33 x 2 scripts
scripts
glue.s3import.fullcopy.rds.py
glue.s3import.fullcopy.s3.py
10:56 (100%)
10:56 (100%)
view
14 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
271:292 (3%)
392:415 (3%)
view
10 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
385:397 (2%)
530:543 (2%)
view
8 x 2 lib/constructs
lib/constructs
data-set-enrollment.ts
data-set-enrollment.ts
81:88 (2%)
207:214 (2%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
144:151 (1%)
229:236 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
404:415 (1%)
545:556 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
171:178 (1%)
229:236 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
144:151 (1%)
218:225 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
171:178 (1%)
218:225 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
144:151 (1%)
171:178 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
208:215 (1%)
218:225 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
144:151 (1%)
208:215 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
281:292 (1%)
545:556 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
218:225 (1%)
229:236 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
171:178 (1%)
208:215 (1%)
view
7 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
208:215 (1%)
229:236 (1%)
view
6 x 2 lib/constructs
lib/constructs
data-lake-enrollment.ts
data-lake-enrollment.ts
295:304 (1%)
418:427 (1%)
view