talira

lints (Dart)

The Dart team's official core and recommended lint sets

open sourceBSD-3-Clausefree

lints is the Dart team's official set of linter rules for Dart code. It holds two sets: core lints, which catch issues likely to cause problems when running or using Dart code, and recommended lints, which add further checks and enforce one idiomatic style. A project includes one of them in its analysis_options.yaml and the Dart analyzer reports the rules. flutter_lints builds on the recommended set for Flutter apps.

Problems it solves

  • set up the standard lint rules for a new Dart project
  • make our Dart code follow the style the Dart team recommends
  • catch likely bugs in Dart code with static analysis

Features

  • core lint set for critical issues
  • recommended lint set for idiomatic style
  • used by the Dart analyzer through analysis_options.yaml

Alternatives

The same job

These do what lints (Dart) does.

  1. extra_pedantic Stricter Dart analyzer lint settings
  2. Lint Hard Every non-clashing Dart lint plus strict type checks, as a drop-in lints package
  3. flutter_lints Recommended lints for Flutter apps, packages and plugins
  4. lint (Dart) Stricter, hand-picked lint rules for Dart and Flutter projects
  5. golangci-lint Fast linters runner for Go
  6. Very Good Analysis Strict lint rules for Dart and Flutter from Very Good Ventures

Compare lints (Dart) with the top 3