frankly_match 0.2.0
frankly_match: ^0.2.0 copied to clipboard
Diversity-maximizing group matching for deliberative conversations. Assigns participants into groups that maximise Hamming distance across answer masks, ensuring each group contains heterogeneous viewpoints.
We analyzed this package 3 days ago, and awarded it 130 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too long.
Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.
Failed to verify repository URL.
Repository has no matching pubspec.yaml with name: frankly_match.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: frankly_match, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
Repository URL doesn't exist.
At the time of the analysis https://github.com/berkmancenter/frankly/tree/main/matching/dart was unreachable. Make sure that the website is reachable via HEAD requests.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
5 out of 8 API elements (62.5 %) have documentation comments.
Some symbols that are missing documentation: frankly_match.MatchGroup.MatchGroup.new, frankly_match.MatchGroup.id, frankly_match.MatchGroup.participantIds.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: Statements in a for should be enclosed in a block.
lib/frankly_match.dart:177:41
╷
177 │ for (int n = 0; n < (s1.length); n++) if (s1[n] != s2[n]) dist += 1;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/frankly_match.dart
INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.
lib/frankly_match.dart:204:43
╷
204 │ buckets.keys.toList().where((k) => (buckets[k]!.length > 0)).toList();
│ ^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/frankly_match.dart
10/10 points: All of the package dependencies are supported in the latest version
No dependencies.
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
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.14, Dart 3.12.2.
Check the analysis log for details.