aws-samples / observability-driven-development
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
  • 13% duplication:
    • 738 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 5 duplicates
system13% (100 lines)
Duplication per Extension
yml18% (86 lines)
js7% (14 lines)
Duplication per Component (primary)
ROOT16% (86 lines)
src/lib/logging14% (14 lines)
src/lib/helper0% (0 lines)
src/handlers0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
22 x 2 ROOT
ROOT
template.yml
template.yml
365:386 (4%)
405:426 (4%)
view
8 x 2 ROOT
ROOT
template.yml
template.yml
27:34 (1%)
44:51 (1%)
view
7 x 2 ROOT
ROOT
template.yml
template.yml
352:358 (1%)
395:401 (1%)
view
7 x 2 src/lib/logging
src/lib/logging
logger.js
logger.js
182:189 (7%)
242:249 (7%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
174:179 (1%)
184:189 (1%)
view