aws-samples / cdk-glue-orchestrate-redshift
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
  • 23% duplication:
    • 660 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 157 duplicated lines
  • 13 duplicates
system23% (157 lines)
Duplication per Extension
py23% (157 lines)
Duplication per Component (primary)
redshift_benchmark48% (95 lines)
redshift_benchmark/lib28% (62 lines)
ROOT0% (0 lines)
scripts/glue_script0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
14 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
201:214 (7%)
226:239 (7%)
view
13 x 2 redshift_benchmark/lib
redshift_benchmark/lib
cdkGlueStack.py
cdkGlueStack.py
29:45 (18%)
75:91 (18%)
view
12 x 2 redshift_benchmark/lib
redshift_benchmark/lib
cdkRedshiftStack.py
cdkRedshiftStack.py
71:82 (12%)
87:98 (12%)
view
12 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
170:181 (6%)
226:237 (6%)
view
12 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
170:181 (6%)
201:212 (6%)
view
8 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
217:224 (4%)
242:249 (4%)
view
7 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
109:115 (3%)
128:134 (3%)
view
7 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
109:115 (3%)
149:155 (3%)
view
7 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
128:134 (3%)
149:155 (3%)
view
6 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
102:107 (3%)
142:147 (3%)
view
6 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
102:107 (3%)
121:126 (3%)
view
6 x 2 redshift_benchmark
redshift_benchmark
redshiftBenchmarkStack.py
redshiftBenchmarkStack.py
121:126 (3%)
142:147 (3%)
view
6 x 2 redshift_benchmark/lib
redshift_benchmark/lib
cdkGlueStack.py
cdkGlueStack.py
61:66 (8%)
100:105 (8%)
view