casbin 0.1.0 casbin: ^0.1.0 copied to clipboard
An authorization library that supports access control models like ACL, RBAC, ABAC.
We analyzed this package 35 hours ago, and awarded it 120 pub points (of a possible 140):
10/10 points: Provide a valid pubspec.yaml
Documentation URL doesn't exist.
At the time of the analysis https://casbin.org/docs/en/overview
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: Apache-2.0
.
10/10 points: 20% or more of the public API has dartdoc comments
207 out of 354 API elements (58.5 %) have documentation comments.
Some symbols that are missing documentation: casbin.Assertion.buildIncrementalRoleLinks
, casbin.Assertion.buildRoleLinks
, casbin.Assertion.key
, casbin.Assertion.policy
, casbin.Assertion.rm
.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
- ✓ iOS
- ✓ Windows
- ✓ Linux
- ✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:casbin/casbin.dart
that imports:package:casbin/src/utils/index.dart
that imports:package:casbin/src/utils/utils.dart
that imports:package:casbin/src/model/assertion.dart
that imports:package:casbin/src/model/model.dart
that imports:package:casbin/src/config/config.dart
that imports:dart:io
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 12 issues. Showing the first 2:
WARNING: Braces unnecessarily wrap this expression in a set literal.
lib/src/persist/file_adapter.dart:48:34
╷
48 │ pList?.values.forEach((n) => {
│ ┌──────────────────────────────────^
49 │ │ n.policy.forEach((m) {
50 │ │ result += n.key + ', ';
51 │ │ result += arrayToString(m);
52 │ │ result += '\n';
53 │ │ })
54 │ │ });
│ └─────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/persist/file_adapter.dart
WARNING: Braces unnecessarily wrap this expression in a set literal.
lib/src/persist/file_adapter.dart:58:34
╷
58 │ gList?.values.forEach((n) => {
│ ┌──────────────────────────────────^
59 │ │ n.policy.forEach((m) {
60 │ │ result += n.key + ', ';
61 │ │ result += arrayToString(m);
62 │ │ result += '\n';
63 │ │ })
64 │ │ });
│ └─────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/persist/file_adapter.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
collection |
^1.15.0 |
1.18.0 | 1.18.0 |
expressions |
^0.2.2 |
0.2.5+1 | 0.2.5+1 |
quiver |
^3.0.1 |
3.2.1 | 3.2.1 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async |
- | 2.11.0 | 2.11.0 |
boolean_selector |
- | 2.1.1 | 2.1.1 |
matcher |
- | 0.12.16+1 | 0.12.16+1 |
meta |
- | 1.14.0 | 1.14.0 |
path |
- | 1.9.0 | 1.9.0 |
petitparser |
- | 6.0.2 | 6.0.2 |
rxdart |
- | 0.27.7 | 0.27.7 |
source_span |
- | 1.10.0 | 1.10.0 |
stack_trace |
- | 1.11.1 | 1.11.1 |
stream_channel |
- | 2.1.2 | 2.1.2 |
string_scanner |
- | 1.2.0 | 1.2.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
test_api |
- | 0.7.1 | 0.7.1 |
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
Analyzed with Pana 0.22.3
, Dart 3.3.3
.
Check the analysis log for details.