commit_lint 0.2.0 copy "commit_lint: ^0.2.0" to clipboard
commit_lint: ^0.2.0 copied to clipboard

Static analysis for commit messages

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate commit_lint

Use it

The package has the following executables:

$ commit_lint

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add commit_lint

With Flutter:

 $ flutter pub add commit_lint

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  commit_lint: ^0.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:commit_lint/commit_lint.dart';