aws-samples / dynamically-adjust-aws-xray-sampling-rules
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
  • 20% duplication:
    • 281 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 59 duplicated lines
  • 5 duplicates
system20% (59 lines)
Duplication per Extension
yaml33% (59 lines)
Duplication per Component (primary)
ROOT33% (59 lines)
custom_resource0% (0 lines)
api0% (0 lines)
xray_rule_adjuster0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
20 x 2 ROOT
ROOT
template.yaml
template.yaml
78:97 (11%)
121:140 (11%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
42:52 (6%)
130:140 (6%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
42:52 (6%)
87:97 (6%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
33:40 (4%)
121:128 (4%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
33:40 (4%)
78:85 (4%)
view