aws-samples / amazon-redshift-config-compare
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,520 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 141 duplicated lines
  • 11 duplicates
system9% (141 lines)
Duplication per Extension
yaml8% (76 lines)
py9% (65 lines)
Duplication per Component (primary)
cloudformation-template8% (76 lines)
configurations9% (65 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
10 x 2 cloudformation-template
cloudformation-template
redshift-node-config-comparison.yaml
redshift-node-config-comparison.yaml
620:629 (1%)
665:674 (1%)
view
9 x 2 configurations
configurations
RedshiftConfigTestingLambda.py
RedshiftConfigTestingLambda.py
414:422 (1%)
432:440 (1%)
view
7 x 2 cloudformation-template
cloudformation-template
redshift-node-config-comparison.yaml
redshift-node-config-comparison.yaml
608:614 (<1%)
652:658 (<1%)
view
7 x 2 configurations
configurations
RedshiftConfigTestingLambda.py
RedshiftConfigTestingLambda.py
518:524 (1%)
611:617 (1%)
view
7 x 2 configurations
configurations
RedshiftConfigTestingLambda.py
RedshiftConfigTestingLambda.py
210:216 (1%)
242:248 (1%)
view
7 x 2 cloudformation-template
cloudformation-template
redshift-node-config-comparison.yaml
redshift-node-config-comparison.yaml
285:291 (<1%)
302:308 (<1%)
view
7 x 2 cloudformation-template
cloudformation-template
redshift-node-config-comparison.yaml
redshift-node-config-comparison.yaml
419:425 (<1%)
432:438 (<1%)
view
7 x 2 cloudformation-template
cloudformation-template
redshift-node-config-comparison.yaml
redshift-node-config-comparison.yaml
508:514 (<1%)
532:538 (<1%)
view
7 x 2 configurations
configurations
RedshiftConfigTestingLambda.py
RedshiftConfigTestingLambda.py
572:578 (1%)
611:617 (1%)
view
7 x 2 configurations
configurations
RedshiftConfigTestingLambda.py
RedshiftConfigTestingLambda.py
518:524 (1%)
572:578 (1%)
view
6 x 2 configurations
configurations
RedshiftConfigTestingLambda.py
RedshiftConfigTestingLambda.py
162:167 (1%)
183:188 (1%)
view