aws / aws-xray-sdk-ruby
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
  • 4% duplication:
    • 3,020 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 128 duplicated lines
  • 10 duplicates
system4% (128 lines)
Duplication per Extension
rb4% (128 lines)
Duplication per Component (primary)
lib/aws-xray-sdk/facets8% (80 lines)
lib/aws-xray-sdk/model9% (48 lines)
lib0% (0 lines)
lib/aws-xray-sdk/streaming0% (0 lines)
lib/aws-xray-sdk/sampling0% (0 lines)
lib/aws-xray-sdk0% (0 lines)
lib/aws-xray-sdk/plugins0% (0 lines)
lib/aws-xray-sdk/emitter0% (0 lines)
lib/aws-xray-sdk/segment_naming0% (0 lines)
lib/aws-xray-sdk/lambda0% (0 lines)
lib/aws-xray-sdk/context0% (0 lines)
doc-src/templates/default0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
12 x 2 lib/aws-xray-sdk/model
lib/aws-xray-sdk/model
annotations.rb
metadata.rb
79:97 (17%)
63:81 (21%)
view
9 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
10:18 (2%)
22:30 (2%)
view
8 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
43:50 (2%)
127:134 (2%)
view
8 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
85:92 (2%)
127:134 (2%)
view
8 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
43:50 (2%)
85:92 (2%)
view
7 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
160:166 (1%)
179:185 (1%)
view
6 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
94:99 (1%)
109:114 (1%)
view
6 x 2 lib/aws-xray-sdk/facets/resources
lib/aws-xray-sdk/facets/resources
aws_params_allowlist.rb
aws_params_allowlist.rb
65:70 (1%)
102:107 (1%)
view
6 x 2 lib/aws-xray-sdk/model
lib/aws-xray-sdk/model
cause.rb
metadata.rb
25:31 (10%)
51:57 (10%)
view
6 x 2 lib/aws-xray-sdk/model
lib/aws-xray-sdk/model
annotations.rb
metadata.rb
14:23 (8%)
33:40 (10%)
view