awslabs / amazon-redshift-monitoring
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
  • 43% duplication:
    • 508 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 222 duplicated lines
  • 7 duplicates
system43% (222 lines)
Duplication per Extension
yaml90% (210 lines)
py4% (12 lines)
Duplication per Component (primary)
ROOT43% (222 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
27 x 2 ROOT
ROOT
deploy-non-vpc.yaml
deploy-vpc.yaml
84:110 (24%)
97:123 (21%)
view
22 x 2 ROOT
ROOT
deploy-non-vpc.yaml
deploy-vpc.yaml
61:82 (20%)
74:95 (17%)
view
21 x 2 ROOT
ROOT
deploy-non-vpc.yaml
deploy-vpc.yaml
40:60 (19%)
48:68 (17%)
view
16 x 2 ROOT
ROOT
deploy-non-vpc.yaml
deploy-vpc.yaml
24:39 (14%)
24:39 (13%)
view
13 x 2 ROOT
ROOT
deploy-non-vpc.yaml
deploy-vpc.yaml
1:13 (11%)
1:13 (10%)
view
7 x 2 ROOT
ROOT
deploy-non-vpc.yaml
deploy-vpc.yaml
12:18 (6%)
17:23 (5%)
view
6 x 2 ROOT
ROOT
redshift_monitoring.py
redshift_monitoring.py
67:72 (2%)
77:82 (2%)
view