aws / aws-xray-sdk-go
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
  • 3% duplication:
    • 3,911 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 132 duplicated lines
  • 18 duplicates
system3% (132 lines)
Duplication per Extension
go3% (132 lines)
Duplication per Component (primary)
xray3% (94 lines)
strategy3% (26 lines)
daemoncfg13% (12 lines)
pattern0% (0 lines)
sample-apps0% (0 lines)
header0% (0 lines)
awsplugins0% (0 lines)
terraform0% (0 lines)
utils0% (0 lines)
xraylog0% (0 lines)
internal0% (0 lines)
instrumentation0% (0 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
13 x 2 xray
xray
sql_context.go
sql_context.go
577:591 (2%)
614:628 (2%)
view
11 x 2 xray
xray
sql_context.go
sql_context.go
192:203 (2%)
237:248 (2%)
view
8 x 2 xray
xray
segment.go
segment.go
587:600 (2%)
612:625 (2%)
view
7 x 2 xray
xray
sql_context.go
sql_context.go
197:203 (1%)
577:583 (1%)
view
7 x 2 xray
xray
sql_context.go
sql_context.go
242:248 (1%)
614:620 (1%)
view
7 x 2 xray
xray
sql_context.go
sql_context.go
197:203 (1%)
614:620 (1%)
view
7 x 2 strategy/sampling
strategy/sampling
centralized_sampling_rule_manifest.go
centralized_sampling_rule_manifest.go
104:114 (5%)
182:192 (5%)
view
7 x 2 xray
xray
sql_context.go
sql_context.go
242:248 (1%)
577:583 (1%)
view
6 x 2 strategy/sampling
strategy/sampling
centralized_sampling_rule_manifest.go
centralized_sampling_rule_manifest.go
96:101 (4%)
149:154 (4%)
view
6 x 2 xray
xray
sql_context.go
sql_context.go
216:222 (1%)
260:266 (1%)
view
6 x 2 xray
xray
segment.go
segment.go
559:568 (1%)
587:596 (1%)
view
6 x 2 xray
xray
sql_context.go
sql_context.go
216:222 (1%)
237:243 (1%)
view
6 x 2 xray
xray
sql_context.go
sql_context.go
237:243 (1%)
260:266 (1%)
view
6 x 2 xray
xray
segment.go
segment.go
559:568 (1%)
612:621 (1%)
view
6 x 2 xray
xray
response_capturer.go
response_capturer.go
223:228 (2%)
268:273 (2%)
view
6 x 2 xray
xray
sql_context.go
sql_context.go
192:198 (1%)
260:266 (1%)
view
6 x 2 xray
xray
sql_context.go
sql_context.go
192:198 (1%)
216:222 (1%)
view
6 x 2 daemoncfg
daemoncfg
daemon_config.go
daemon_config.go
137:144 (6%)
166:173 (6%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
7 x 2 strategy/exception
xray
default_exception_formatting_strategy.go
segment.go
166:173 
39:46 
view
7 x 2 xray
xray
sql_context.go
sql_context.go
410:417 
419:426 
view