golang / geo
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
  • 1% duplication:
    • 8,053 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 142 duplicated lines
  • 9 duplicates
system1% (142 lines)
Duplication per Extension
go1% (142 lines)
Duplication per Component (primary)
s21% (142 lines)
r20% (0 lines)
s10% (0 lines)
r10% (0 lines)
r30% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
16 x 2 s2
s2
cell.go
cell.go
233:248 (5%)
256:271 (5%)
view
16 x 2 s2
s2
interleave.go
interleave.go
42:58 (17%)
51:67 (17%)
view
10 x 2 s2
s2
loop.go
loop.go
1033:1062 (1%)
1088:1097 (1%)
view
8 x 2 s2
s2
max_distance_targets.go
min_distance_targets.go
262:271 (5%)
318:327 (5%)
view
8 x 2 s2
s2
interleave.go
interleave.go
42:49 (8%)
60:67 (8%)
view
7 x 2 s2
s2
cellunion.go
cellunion.go
155:163 (2%)
174:182 (2%)
view
6 x 2 s2
s2
max_distance_targets.go
min_distance_targets.go
273:281 (3%)
329:337 (3%)
view
6 x 2 s2
s2
edge_query.go
edge_query.go
258:265 (1%)
280:287 (1%)
view
6 x 2 s2
s2
cellunion.go
point.go
569:575 (2%)
230:236 (6%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
8 x 2 s2
s2
util.go
util.go
29:37 
51:59 
view
8 x 2 s2
s2
util.go
util.go
40:48 
62:70 
view
6 x 2 s2
s2
encode.go
encode.go
169:175 
177:183 
view