aws-samples / redshift-etl-automation-with-dbt
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
  • 7% duplication:
    • 832 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 66 duplicated lines
  • 5 duplicates
system7% (66 lines)
Duplication per Extension
yaml8% (66 lines)
Duplication per Component (primary)
cloudformation_files8% (66 lines)
config0% (0 lines)
src/dbt-project0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
9 x 2 cloudformation_files
cloudformation_files
etl_automation.yaml
redshift.yaml
215:223 (2%)
154:162 (2%)
view
6 x 2 cloudformation_files
cloudformation_files
etl_automation.yaml
etl_automation.yaml
105:110 (1%)
281:286 (1%)
view
6 x 2 cloudformation_files
cloudformation_files
redshift.yaml
redshift.yaml
66:71 (1%)
75:80 (1%)
view
6 x 2 cloudformation_files
cloudformation_files
etl_automation.yaml
redshift.yaml
232:237 (1%)
171:176 (1%)
view
6 x 2 cloudformation_files
cloudformation_files
etl_automation.yaml
redshift.yaml
361:366 (1%)
380:385 (1%)
view