awslabs / amazon-dynamodb-tools
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
  • 17% duplication:
    • 494 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 88 duplicated lines
  • 6 duplicates
system17% (88 lines)
Duplication per Extension
py17% (88 lines)
Duplication per Component (primary)
ddbtools15% (56 lines)
ROOT22% (32 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ddbtools
ddbtools
pricing.py
pricing.py
27:49 (18%)
110:132 (18%)
view
9 x 2 ROOT
ROOT
table_class_evaluator.py
table_tagger.py
38:51 (10%)
17:28 (15%)
view
7 x 2 ROOT
ROOT
table_class_evaluator.py
table_tagger.py
54:62 (8%)
54:62 (12%)
view
6 x 2 ddbtools
ddbtools
table.py
table.py
157:163 (3%)
193:199 (3%)
view
6 x 2 ddbtools
ddbtools
pricing.py
pricing.py
85:91 (5%)
122:128 (5%)
view
6 x 2 ddbtools
ddbtools
pricing.py
pricing.py
39:45 (5%)
85:91 (5%)
view