Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
/ dart-linting Public archive

linting is a framework for creating custom linters using the analyzer_plugin and cli.

License

Notifications You must be signed in to change notification settings

hisaichi5518/dart-linting

Repository files navigation

linting

linting is a framework for creating custom linter.

Motivation

Dart has a linter, but it is currently not able to create custom rules.

dart-lang/linter#697

There are several ways to create custom rules, but each has its own disadvantages.

  • Create your own linter command
    • Easy to implement.
    • Cannot check errors in the IDE.
  • Use the analyzer_plugin
    • Errors can be displayed in the IDE.
    • Difficult to implement and debug.
    • To check errors in CI (ex, Github Action), need to create a command.

linting is a framework for solving these problems.

Get Started

The complete code can be found at example

TODO

  • auto-fix command for CLI
  • auto-fix command for analyzer_plugin
  • linting create .
  • documents

Release

  • create and push release branch. (ex, release/1.2.0)
  • Update CHANGELOG.md
  • Update pubspec.yaml
  • Create tag
  • Create release
  • run dart pub publish
  • merge release branch.