dart-lang / 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
  • 22% duplication:
    • 1,258 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 286 duplicated lines
  • 26 duplicates
system22% (286 lines)
Duplication per Extension
dart23% (286 lines)
Duplication per Component (primary)
lib/src/directory_watcher32% (228 lines)
lib/src7% (24 lines)
lib/src/file_watcher20% (20 lines)
benchmark16% (14 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 26 duplicates...
Size#FoldersFilesLinesCode
19 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
314:344 (9%)
343:375 (7%)
view
14 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
146:163 (6%)
180:197 (5%)
view
14 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
199:218 (6%)
230:249 (5%)
view
11 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
37:50 (5%)
45:58 (4%)
view
10 x 2 lib/src/directory_watcher
lib/src/file_watcher
mac_os.dart
polling.dart
40:52 (4%)
23:35 (18%)
view
10 x 2 lib/src/file_watcher
lib/src/file_watcher
native.dart
polling.dart
22:34 (21%)
23:35 (18%)
view
10 x 2 lib/src/directory_watcher
lib/src/file_watcher
mac_os.dart
native.dart
40:52 (4%)
22:34 (21%)
view
9 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
395:411 (4%)
420:437 (3%)
view
8 x 2 lib/src/directory_watcher
lib/src/file_watcher
windows.dart
native.dart
48:58 (3%)
22:32 (17%)
view
8 x 2 lib/src/directory_watcher
lib/src/directory_watcher
linux.dart
mac_os.dart
42:51 (5%)
43:52 (3%)
view
8 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
169:189 (3%)
204:225 (3%)
view
8 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
129:137 (3%)
168:176 (3%)
view
8 x 2 lib/src/directory_watcher
lib/src/file_watcher
windows.dart
polling.dart
48:58 (3%)
23:33 (14%)
view
8 x 2 lib/src/directory_watcher
lib/src/file_watcher
linux.dart
polling.dart
42:51 (5%)
26:35 (14%)
view
8 x 2 lib/src/directory_watcher
lib/src/file_watcher
linux.dart
native.dart
42:51 (5%)
25:34 (17%)
view
8 x 2 lib/src/directory_watcher
lib/src/directory_watcher
mac_os.dart
windows.dart
6:15 (3%)
8:17 (3%)
view
7 x 2 benchmark
benchmark
path_set.dart
path_set.dart
73:81 (8%)
129:138 (8%)
view
6 x 2 lib/src/directory_watcher
lib/src/directory_watcher
linux.dart
windows.dart
42:49 (3%)
51:58 (2%)
view
6 x 2 lib/src/directory_watcher
lib/src/directory_watcher
polling.dart
windows.dart
35:41 (6%)
45:51 (2%)
view
6 x 2 lib/src/directory_watcher
lib/src/directory_watcher
linux.dart
windows.dart
268:278 (3%)
427:437 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 3 lib/src/directory_watcher
lib/src/directory_watcher
lib/src/directory_watcher
linux.dart
mac_os.dart
windows.dart
272:279 
405:412 
431:438 
view