Skip to content

Prevent adding events to closed stream controller (#1223) #747

Prevent adding events to closed stream controller (#1223)

Prevent adding events to closed stream controller (#1223) #747

GitHub Actions / Analysis of hive succeeded Jul 28, 2023 in 18s

Package analysis results for hive

Score

100/130 points
(76.92307692307692%)

Supported platforms

  • Flutter
    • android
    • ios
    • windows
    • linux
    • macos
    • web
  • Dart
    • native-aot
      Can be aot compiled with eg. dart2native (Can use dart:io but not dart:mirrors)
    • native-jit
      Can be run with the dart vm in jit mode. (Can use dart:io and dart:mirrors)
    • web
      Can be compiled with DDC and dart2js. (Can use dart:html and friends, not dart:io, dart:mirrors, dart:ffi, etc.)

Details

Follow Dart file conventions (20/30)

✔ 10/10 points: Provide a valid pubspec.yaml

✔ 5/5 points: Provide a valid README.md

✔ 5/5 points: Provide a valid CHANGELOG.md

❌ 0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

Provide documentation (10/10)

✔ 10/10 points: Package has an example

Platform support (20/20)

✔ 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ MacOS
  • ✓ Web

Pass static analysis (30/50)

❌ 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 8 issues. Showing the first 2:

WARNING: This API is available since SDK 2.15.0, but constraints '>=2.12.0 <3.0.0' don't guarantee it.

lib/src/hive_impl.dart:127:9

    ╷
127 │         unawaited(_openingBoxes.remove(TupleBoxKey(name, collection)));
    │         ^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/hive_impl.dart

INFO: The null check operator shouldn't be used on a variable whose type is a potentially nullable type parameter.

lib/src/util/indexable_skip_list.dart:66:54

   ╷
66 │         if (next == null || _comparator(key, next.key!) < 0) break;
   │                                                      ^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/util/indexable_skip_list.dart

Support up-to-date dependencies (20/20)

✔ 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
crypto ^3.0.0 3.0.3 3.0.3
js ^0.6.4 0.6.7 0.6.7
meta ^1.3.0 1.9.1 1.9.1
Transitive dependencies
Package Constraint Compatible Latest
collection - 1.18.0 1.18.0
typed_data - 1.3.2 1.3.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

✔ 10/10 points: Package supports latest stable Dart and Flutter SDKs

Versions