enzona 0.0.1+1 enzona: ^0.0.1+1 copied to clipboard
SDK para las APIs de Enzona.
We analyzed this package 2 days ago, and awarded it 90 pub points (of a possible 140):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
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: BSD-2-Clause
.
0/10 points: 20% or more of the public API has dartdoc comments
28 out of 407 API elements (6.9 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
Some symbols that are missing documentation: enzona
, enzona.EResponse.extraData
, enzona.Enzona.accessTokenUrl
, enzona.Enzona.apiUrl
, enzona.Enzona.consumerKey
.
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:enzona/enzona.dart
that imports:package:http/io_client.dart
that imports:package:http/src/io_streamed_response.dart
that imports:dart:io
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 34 issues. Showing the first 2:
WARNING: Dead code.
lib/src/base_api/dio_oauth2_client.dart:110:46
╷
110 │ if(/*credentials.canRefresh*/ false) {
│ ┌──────────────────────────────────────────────^
111 │ │ ///Fixme: implement credentials refresh using Dio
112 │ │ _refreshingFuture = credentials.refresh(
113 │ │ identifier: identifier,
114 │ │ secret: secret,
115 │ │ newScopes: newScopes,
116 │ │ basicAuth: _basicAuth,
117 │ │ // httpClient: _httpClient,
118 │ │ );
119 │ │ } else { /// Here a new clientCredentialsGrant is forced to get new credentials with new expiration date
│ └─────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/base_api/dio_oauth2_client.dart
INFO: The import of 'package:enzona/src/base_api/e_response.dart' is unnecessary because all of the used elements are also provided by the import of 'package:enzona/enzona.dart'.
lib/src/base_api/rest_api_service.dart:10:8
╷
10 │ import 'package:enzona/src/base_api/e_response.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/base_api/rest_api_service.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
chopper |
^4.0.1 |
4.0.6 | 7.4.0 |
collection |
^1.15.0 |
1.18.0 | 1.18.0 |
dio |
^4.0.0 |
4.0.6 | 5.4.3+1 |
http |
^0.13.4 |
0.13.6 | 1.2.1 |
http_parser |
^4.0.0 |
4.0.2 | 4.0.2 |
json_annotation |
^4.1.0 |
4.9.0 | 4.9.0 |
meta |
^1.7.0 |
1.14.0 | 1.14.0 |
oauth2 |
^2.0.0 |
2.0.2 | 2.0.2 |
retrofit |
^2.0.1 |
2.2.0 | 4.1.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async |
- | 2.11.0 | 2.11.0 |
crypto |
- | 3.0.3 | 3.0.3 |
logging |
- | 1.2.0 | 1.2.0 |
path |
- | 1.9.0 | 1.9.0 |
source_span |
- | 1.10.0 | 1.10.0 |
string_scanner |
- | 1.2.0 | 1.2.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
typed_data |
- | 1.3.2 | 1.3.2 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 4 issues. Showing the first 2:
The constraint `^4.0.1` on chopper does not support the stable version `5.0.0`.
Try running dart pub upgrade --major-versions chopper
to update the constraint.
The constraint `^4.0.0` on dio does not support the stable version `5.0.0`.
Try running dart pub upgrade --major-versions dio
to update the constraint.
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.