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

outdated

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

example/main.dart

import 'dart:io';

import "package:dart_pre_commit/dart_pre_commit.dart";

Future<void> main(List<String> arguments) async {
  // assume first arg is the git directory to handle
  Directory.current = arguments.first;

  // create the hooks instance with your custom configuration
  final hook = await Hooks.create();

  // run all hooks
  final result = await hook();

  // report the result
  exitCode = result.index;
}
20
likes
0
pub points
80%
popularity

Publisher

verified publisherskycoder42.de

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, convert, crypto, meta, path, pub_semver, yaml

More

Packages that depend on dart_pre_commit