microsoft / ApplicationInsights-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:
    • 1,934 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 73 duplicated lines
  • 17 duplicates
system3% (73 lines)
Duplication per Extension
go3% (73 lines)
Duplication per Component (primary)
appinsights6% (73 lines)
appinsights/contracts0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 17 longest duplicates.
See data for all 17 duplicates...
Size#FoldersFilesLinesCode
9 x 2 appinsights
appinsights
telemetry.go
telemetry.go
495:503 (2%)
562:570 (2%)
view
8 x 2 appinsights
appinsights
telemetry.go
telemetry.go
148:155 (2%)
616:623 (2%)
view
8 x 2 appinsights
appinsights
exception.go
telemetry.go
41:48 (9%)
616:623 (2%)
view
8 x 2 appinsights
appinsights
telemetry.go
telemetry.go
563:570 (2%)
616:623 (2%)
view
8 x 2 appinsights
appinsights
telemetry.go
telemetry.go
148:155 (2%)
496:503 (2%)
view
8 x 2 appinsights
appinsights
telemetry.go
telemetry.go
148:155 (2%)
563:570 (2%)
view
8 x 2 appinsights
appinsights
telemetry.go
telemetry.go
496:503 (2%)
616:623 (2%)
view
8 x 2 appinsights
appinsights
exception.go
telemetry.go
41:48 (9%)
496:503 (2%)
view
8 x 2 appinsights
appinsights
exception.go
telemetry.go
41:48 (9%)
148:155 (2%)
view
8 x 2 appinsights
appinsights
exception.go
telemetry.go
41:48 (9%)
563:570 (2%)
view
7 x 2 appinsights
appinsights
inmemorychannel.go
inmemorychannel.go
241:248 (3%)
328:334 (3%)
view
6 x 2 appinsights
appinsights
telemetry.go
telemetry.go
150:155 (1%)
416:421 (1%)
view
6 x 2 appinsights
appinsights
exception.go
telemetry.go
43:48 (7%)
416:421 (1%)
view
6 x 2 appinsights
appinsights
telemetry.go
telemetry.go
416:421 (1%)
618:623 (1%)
view
6 x 2 appinsights
appinsights
telemetry.go
telemetry.go
416:421 (1%)
565:570 (1%)
view
6 x 2 appinsights
appinsights
inmemorychannel.go
inmemorychannel.go
187:196 (2%)
232:241 (2%)
view
6 x 2 appinsights
appinsights
telemetry.go
telemetry.go
416:421 (1%)
498:503 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 8 appinsights/contracts
appinsights/contracts
appinsights/contracts
appinsights/contracts
appinsights/contracts
appinsights/contracts
appinsights/contracts
appinsights/contracts
availabilitydata.go
eventdata.go
exceptiondata.go
messagedata.go
metricdata.go
pageviewdata.go
remotedependencydata.go
requestdata.go
40:46 
26:32 
33:39 
26:32 
23:29 
22:28 
52:58 
49:55 
view
6 x 2 appinsights/contracts
appinsights/contracts
contexttags.go
contexttags.go
91:97 
109:115 
view