aws-samples / hcls-data-lake
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
  • 9% duplication:
    • 1,317 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 121 duplicated lines
  • 13 duplicates
system9% (121 lines)
Duplication per Extension
yml11% (69 lines)
py7% (52 lines)
Duplication per Component (primary)
er7_to_json_service18% (41 lines)
old_reference16% (33 lines)
core_infrastructure11% (14 lines)
staging_service11% (13 lines)
ingest_er7_service4% (13 lines)
auth_service5% (7 lines)
lib0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
19 x 2 er7_to_json_service
old_reference
parse_er7_lambda.py
er7_to_json.py
33:68 (47%)
17:53 (10%)
view
13 x 2 ingest_er7_service
staging_service
ingest_er7_stack.yml
staging_stack.yml
23:35 (9%)
38:50 (17%)
view
11 x 2 er7_to_json_service
staging_service
er7_to_json_stack.yml
staging_stack.yml
58:68 (7%)
39:49 (15%)
view
11 x 2 er7_to_json_service
ingest_er7_service
er7_to_json_stack.yml
ingest_er7_stack.yml
92:102 (7%)
24:34 (8%)
view
11 x 2 er7_to_json_service
er7_to_json_service
er7_to_json_stack.yml
er7_to_json_stack.yml
58:68 (7%)
92:102 (7%)
view
11 x 2 er7_to_json_service
staging_service
er7_to_json_stack.yml
staging_stack.yml
92:102 (7%)
39:49 (15%)
view
11 x 2 er7_to_json_service
ingest_er7_service
er7_to_json_stack.yml
ingest_er7_stack.yml
58:68 (7%)
24:34 (8%)
view
7 x 2 auth_service
er7_to_json_service
auth_stack.yml
er7_to_json_stack.yml
49:56 (6%)
58:64 (4%)
view
7 x 2 auth_service
ingest_er7_service
auth_stack.yml
ingest_er7_stack.yml
49:56 (6%)
24:30 (5%)
view
7 x 2 core_infrastructure
core_infrastructure
core_stack.yml
core_stack.yml
34:40 (6%)
67:73 (6%)
view
7 x 2 auth_service
staging_service
auth_stack.yml
staging_stack.yml
49:56 (6%)
39:45 (9%)
view
7 x 2 auth_service
er7_to_json_service
auth_stack.yml
er7_to_json_stack.yml
49:56 (6%)
92:98 (4%)
view
7 x 2 old_reference
old_reference
er7_to_json.py
er7_to_json.py
79:85 (3%)
92:98 (3%)
view