kubernetes / mount-utils
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
  • 8% duplication:
    • 1,103 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 92 duplicated lines
  • 6 duplicates
system8% (92 lines)
Duplication per Extension
go8% (92 lines)
Duplication per Component (primary)
ROOT8% (92 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
13 x 2 ROOT
ROOT
mount_helper_unix.go
mount_helper_windows.go
43:56 (13%)
46:60 (32%)
view
7 x 2 ROOT
ROOT
mount_helper_common.go
mount_helper_common.go
32:39 (11%)
45:52 (11%)
view
7 x 2 ROOT
ROOT
mount_linux.go
mount_linux.go
100:107 (2%)
129:136 (2%)
view
7 x 2 ROOT
ROOT
mount_helper_common.go
mount_helper_common.go
54:66 (11%)
87:99 (11%)
view
6 x 2 ROOT
ROOT
mount_linux.go
mount_linux.go
185:193 (1%)
296:304 (1%)
view
6 x 2 ROOT
ROOT
resizefs_linux.go
resizefs_linux.go
43:53 (5%)
112:121 (5%)
view