dart_pre_commit 5.3.0 copy "dart_pre_commit: ^5.3.0" to clipboard
dart_pre_commit: ^5.3.0 copied to clipboard

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

17
likes
120/ 140
pub points
79%
popularity

We analyzed this package 9 hours ago, and awarded it 120 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

124 out of 130 API elements (95.4 %) have documentation comments.

Some symbols that are missing documentation: dart_pre_commit, dart_pre_commit.HooksConfig.copyWith, dart_pre_commit.RepoEntry.copyWith, hooks, logging.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:dart_pre_commit/dart_pre_commit.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `iOS`.

Because:

  • package:dart_pre_commit/dart_pre_commit.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `Web`.

Because:

  • package:dart_pre_commit/dart_pre_commit.dart that declares support for platforms: Windows, Linux, macOS.
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 18 issues. Showing the first 2:

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

lib/src/tasks/analyze_task.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/tasks/analyze_task.freezed.dart

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

lib/src/tasks/analyze_task.freezed.dart:109:12

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

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

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

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

Package Constraint Compatible Latest
analyzer ^6.4.1 6.4.1 6.4.1
args ^2.4.2 2.5.0 2.5.0
checked_yaml ^2.0.3 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.3 3.0.3 3.0.3
freezed_annotation ^2.4.1 2.4.1 2.4.1
json_annotation ^4.8.01 4.8.1 4.8.1
logging ^1.2.0 1.2.0 1.2.0
meta ^1.11.0 1.14.0 1.14.0
path ^1.9.0 1.9.0 1.9.0
pub_semver ^2.1.4 2.1.4 2.1.4
pubspec_parse ^1.2.3 1.2.3 1.2.3
riverpod ^2.5.1 2.5.1 2.5.1
yaml ^3.1.2 3.1.2 3.1.2
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 67.0.0 67.0.0
async - 2.11.0 2.11.0
collection - 1.18.0 1.18.0
file - 7.0.0 7.0.0
glob - 2.1.2 2.1.2
package_config - 2.1.0 2.1.0
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
state_notifier - 1.0.0 1.0.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
vector_math - 2.1.4 2.1.4
watcher - 1.1.0 1.1.0

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.