custom_lint 0.6.7 custom_lint: ^0.6.7 copied to clipboard
Lint rules are a powerful way to improve the maintainability of a project. Custom Lint allows package authors and developers to easily write custom lint rules.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate custom_lint
Use it
The package has the following executables:
$ custom_lint
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add custom_lint
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
custom_lint: ^0.6.7
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:custom_lint/custom_lint.dart';