dart-lang / bazel_worker
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
  • 10% duplication:
    • 977 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 104 duplicated lines
  • 5 duplicates
system10% (104 lines)
Duplication per Extension
dart7% (66 lines)
yaml61% (38 lines)
Duplication per Component (primary)
lib/src8% (32 lines)
lib/src/worker15% (22 lines)
e2e_test63% (19 lines)
ROOT59% (19 lines)
lib9% (12 lines)
e2e_test/lib0% (0 lines)
lib/src/driver0% (0 lines)
example0% (0 lines)
benchmark0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
e2e_test
analysis_options.yaml
analysis_options.yaml
1:25 (100%)
1:25 (100%)
view
11 x 2 lib/src/worker
lib/src/worker
async_worker_loop.dart
sync_worker_loop.dart
37:50 (34%)
34:47 (35%)
view
9 x 2 lib/src
lib/src
worker_protocol.pb.dart
worker_protocol.pb.dart
152:162 (4%)
247:257 (4%)
view
7 x 2 lib/src
lib/src
worker_protocol.pb.dart
worker_protocol.pb.dart
110:116 (3%)
186:192 (3%)
view
6 x 2 lib
lib
testing.dart
testing.dart
147:157 (5%)
191:201 (5%)
view