dart_pre_commit 2.3.3
dart_pre_commit: ^2.3.3 copied to clipboard
A small collection of pre commit hooks to format and lint dart code
We analyzed this package 3 days ago, and awarded it 130 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
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-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
167 out of 180 API elements (92.8 %) have documentation comments.
Some symbols that are missing documentation: dart_pre_commit
, dart_pre_commit.FileResolver.FileResolver.new
, dart_pre_commit.FileTask.FileTask.new
, dart_pre_commit.HooksConfig.copyWith
, dart_pre_commit.HooksProviderInternal.ansiSupported
.
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:dart_pre_commit/dart_pre_commit.dart
that imports:package:dart_pre_commit/src/util/program_runner.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:dart_pre_commit/dart_pre_commit.dart
that imports:package:dart_pre_commit/src/util/program_runner.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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 16 issues. Showing the first 2:
WARNING: The parameter type of '==' operators should be non-nullable.
lib/src/hooks_provider.freezed.dart:321:17
╷
321 │ bool operator ==(dynamic other) {
│ ^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/hooks_provider.freezed.dart
WARNING: The parameter type of '==' operators should be non-nullable.
lib/src/repo_entry.freezed.dart:133:17
╷
133 │ bool operator ==(dynamic other) {
│ ^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/repo_entry.freezed.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
args |
^2.3.0 |
2.7.0 | 2.7.0 | |
console |
^4.1.0 |
4.1.0 | 4.1.0 | |
convert |
^3.0.1 |
3.1.2 | 3.1.2 | |
crypto |
^3.0.1 |
3.0.6 | 3.0.6 | |
freezed_annotation |
^1.0.0 |
1.1.0 | 3.0.0 | |
json_annotation |
^4.4.0 |
4.9.0 | 4.9.0 | |
meta |
^1.7.0 |
1.16.0 | 1.16.0 | |
path |
^1.8.0 |
1.9.1 | 1.9.1 | |
pub_semver |
^2.1.0 |
2.2.0 | 2.2.0 | |
riverpod |
^1.0.1 |
1.0.3+1 | 2.6.1 | |
yaml |
^3.1.0 |
3.1.3 | 3.1.3 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
state_notifier |
- | 0.7.2+1 | 1.0.0 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.1.5 | 2.1.5 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^1.0.0` on freezed_annotation does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions freezed_annotation
to update the constraint.
The constraint `^1.0.1` on riverpod does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions riverpod
to update the constraint.
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.20
, Dart 3.7.2
.
Check the analysis log for details.