casbin 0.1.0 copy "casbin: ^0.1.0" to clipboard
casbin: ^0.1.0 copied to clipboard

An authorization library that supports access control models like ACL, RBAC, ABAC.

9
likes
140/ 160
pub points
85%
popularity

We analyzed this package 8 days ago, and awarded it 140 pub points (of a possible 160):

partial
Follow Dart file conventions
30 / 30trigger folding of the section

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.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

207 out of 352 API elements (58.8 %) 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

failed
Platform support
20 / 20trigger folding of the section

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

0/0 points: WASM compatibility

Package not compatible with runtime wasm

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

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

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

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest
collection ^1.15.0 1.19.1 1.19.1
expressions ^0.2.2 0.2.5+2 0.2.5+2
quiver ^3.0.1 3.2.2 3.2.2
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
boolean_selector - 2.1.2 2.1.2
matcher - 0.12.17 0.12.17
meta - 1.16.0 1.16.0
path - 1.9.1 1.9.1
petitparser - 6.0.2 6.0.2
rxdart - 0.28.0 0.28.0
source_span - 1.10.0 1.10.0
stack_trace - 1.12.0 1.12.0
stream_channel - 2.1.2 2.1.2
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
test_api - 0.7.3 0.7.3

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.22.15, Dart 3.5.4.

Check the analysis log for details.

9
likes
140
pub points
85%
popularity

Publisher

verified publishercasbin.org

An authorization library that supports access control models like ACL, RBAC, ABAC.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

Apache-2.0 (license)

Dependencies

collection, expressions, quiver

More

Packages that depend on casbin