dart_pre_commit 3.0.2+1 copy "dart_pre_commit: ^3.0.2+1" to clipboard
dart_pre_commit: ^3.0.2+1 copied to clipboard

A small collection of pre commit hooks to format and lint dart code

18
likes
80/ 140
pub points
78%
popularity

We analyzed this package 11 hours ago, and awarded it 80 pub points (of a possible 140):

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

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.

OK
Provide documentation
20 / 20trigger folding of the section

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

191 out of 198 API elements (96.5 %) have documentation comments.

Some symbols that are missing documentation: dart_pre_commit, dart_pre_commit.Config.allowOutdated, dart_pre_commit.Config.copyWith, dart_pre_commit.Config.toJson, dart_pre_commit.HooksConfig.copyWith.

10/10 points: Package has an example

OK
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:dart_pre_commit/dart_pre_commit.dart that imports:
  • package:dart_pre_commit/src/util/program_runner.dart that imports:
  • package:dart_pre_commit/src/util/logger.dart that imports:
  • package:dart_pre_commit/src/task_base.dart that imports:
  • package:dart_pre_commit/src/repo_entry.dart that imports:
  • dart:io
failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

Found 37 issues. Showing the first 2:

ERROR: Missing concrete implementation of 'getter Logger.onLevelChanged'.

lib/src/util/logging/logging_wrapper.dart:25:7

   ╷
25 │ class LoggingWrapper implements logging.Logger {
   │       ^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/util/logging/logging_wrapper.dart

WARNING: The diagnostic 'invalid_annotation_target' doesn't need to be ignored here because it's already being ignored.

lib/src/config/config.freezed.dart:23:12

   ╷
23 │ // ignore: invalid_annotation_target
   │            ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/config/config.freezed.dart

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

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

Package Constraint Compatible Latest
analyzer >=4.7.0 <6.0.0 5.13.0 6.5.0
args ^2.3.1 2.5.0 2.5.0
checked_yaml ^2.0.1 2.0.3 2.0.3
console ^4.1.0 4.1.0 4.1.0
convert ^3.1.1 3.1.1 3.1.1
crypto ^3.0.2 3.0.3 3.0.3
dart_test_tools ^4.5.3+1 4.9.0 5.10.2
freezed_annotation ^2.2.0 2.4.1 2.4.1
json_annotation ^4.7.0 4.9.0 4.9.0
logging ^1.1.0 1.2.0 1.2.0
meta ^1.8.0 1.15.0 1.15.0
path ^1.8.2 1.9.0 1.9.0
pub_semver ^2.1.2 2.1.4 2.1.4
pubspec_parse ^1.2.1 1.2.3 1.2.3
riverpod ^2.0.2 2.5.1 2.5.1
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 61.0.0 68.0.0
async - 2.11.0 2.11.0
boolean_selector - 2.1.1 2.1.1
change - 0.6.0 0.7.3
cider - 0.1.6 0.2.7
clock - 1.1.1 1.1.1
collection - 1.18.0 1.18.0
coverage - 1.8.0 1.8.0
dotenv - 4.2.0 4.2.0
file - 7.0.0 7.0.0
frontend_server_client - 4.0.0 4.0.0
glob - 2.1.2 2.1.2
http_multi_server - 3.2.1 3.2.1
http_parser - 4.0.2 4.0.2
intl - 0.19.0 0.19.0
io - 1.0.4 1.0.4
js - 0.7.1 0.7.1
klizma - 0.2.1 0.2.1
lint - 2.3.0 2.3.0
markdown - 7.2.2 7.2.2
marker - 0.5.1 0.6.0
matcher - 0.12.16+1 0.12.16+1
mime - 1.0.5 1.0.5
mocktail - 0.3.0 1.0.3
node_preamble - 2.0.2 2.0.2
package_config - 2.1.0 2.1.0
pool - 1.5.1 1.5.1
rfc_6901 - 0.1.1 0.2.0
shelf - 1.4.1 1.4.1
shelf_packages_handler - 3.0.2 3.0.2
shelf_static - 1.1.2 1.1.2
shelf_web_socket - 2.0.0 2.0.0
source_map_stack_trace - 2.1.1 2.1.1
source_maps - 0.10.12 0.10.12
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
state_notifier - 1.0.0 1.0.0
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 - 1.25.5 1.25.5
test_api - 0.7.1 0.7.1
test_core - 0.6.2 0.6.2
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4
version_manipulation - 0.1.2 0.2.0
vm_service - 14.2.2 14.2.2
watcher - 1.1.0 1.1.0
web - 0.5.1 0.5.1
web_socket - 0.1.3 0.1.3
web_socket_channel - 3.0.0 3.0.0
webkit_inspection_protocol - 1.2.1 1.2.1
yaml - 3.1.2 3.1.2
yaml_writer - 1.0.3 2.0.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `>=4.7.0 <6.0.0` on analyzer does not support the stable version `6.0.0`.

Try running dart pub upgrade --major-versions analyzer to update the constraint.

The constraint `^4.5.3+1` on dart_test_tools does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions dart_test_tools to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.4.0.

Check the analysis log for details.