bazelbuild / bazel-watcher
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:
    • 2,098 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 40 duplicated lines
  • 3 duplicates
system1% (40 lines)
Duplication per Extension
go2% (40 lines)
Duplication per Component (primary)
ibazel/command22% (40 lines)
example_client/data0% (0 lines)
example_client0% (0 lines)
tools0% (0 lines)
release/npm0% (0 lines)
ROOT0% (0 lines)
bazel/testing0% (0 lines)
bazel0% (0 lines)
ibazel/lifecycle_hooks0% (0 lines)
ibazel0% (0 lines)
ibazel/fswatcher0% (0 lines)
ibazel/workspace0% (0 lines)
ibazel/log0% (0 lines)
ibazel/profiler0% (0 lines)
ibazel/output_runner0% (0 lines)
ibazel/live_reload0% (0 lines)
ibazel/process_group0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
7 x 2 ibazel/command
ibazel/command
default_command.go
notify_command.go
48:55 (15%)
49:56 (9%)
view
7 x 2 ibazel/command
ibazel/command
default_command.go
notify_command.go
65:73 (15%)
66:74 (9%)
view
6 x 2 ibazel/command
ibazel/command
default_command.go
notify_command.go
78:84 (13%)
85:91 (8%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
9 x 2 ibazel/command
ibazel/command
notify_command.go
default_command.go
48:57 
47:56 
view
7 x 2 ibazel
ibazel/live_reload
ibazel.go
server.go
371:378 
131:138 
view