aws-samples / amazon-redshift-location-user-defined-functions
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
  • 35% duplication:
    • 367 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 131 duplicated lines
  • 8 duplicates
system35% (131 lines)
Duplication per Extension
py50% (68 lines)
yaml27% (63 lines)
Duplication per Component (primary)
cloudformation27% (63 lines)
geocoding_lambda36% (34 lines)
reverse_geocoding_lambda80% (34 lines)

Duplication Between Components (50+ lines)

G geocoding_lambda geocoding_lambda reverse_geocoding_lambda reverse_geocoding_lambda geocoding_lambda--reverse_geocoding_lambda 68

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
19 x 2 geocoding_lambda
reverse_geocoding_lambda
lambda_function.py
lambda_function.py
29:64 (20%)
27:60 (45%)
view
12 x 2 cloudformation
cloudformation
create-lambda.yaml
create-lambda.yaml
136:147 (5%)
157:168 (5%)
view
11 x 2 cloudformation
cloudformation
create-lambda.yaml
create-lambda.yaml
39:49 (4%)
136:146 (4%)
view
11 x 2 cloudformation
cloudformation
create-lambda.yaml
create-lambda.yaml
39:49 (4%)
157:167 (4%)
view
8 x 2 cloudformation
cloudformation
create-lambda.yaml
create-lambda.yaml
213:220 (3%)
233:240 (3%)
view
8 x 2 geocoding_lambda
reverse_geocoding_lambda
lambda_function.py
lambda_function.py
82:89 (8%)
65:72 (19%)
view
7 x 2 geocoding_lambda
reverse_geocoding_lambda
lambda_function.py
lambda_function.py
93:100 (7%)
74:80 (16%)
view
6 x 2 cloudformation
cloudformation
create-lambda.yaml
create-lambda.yaml
222:227 (2%)
242:247 (2%)
view