talira

Very Good Analysis

Strict lint rules for Dart and Flutter from Very Good Ventures

open sourceMITfree

Very Good Analysis is a set of lint rules for Dart and Flutter that Very Good Ventures uses on its own projects, published as a package you add as a dev dependency and include from analysis_options.yaml. Including the package's analysis_options.yaml always uses its latest rules, or you can pin a versioned file such as analysis_options.10.0.0.yaml; rules can be suppressed per line, per file or for the whole project. It also configures the Dart formatter to manage trailing commas automatically. It was inspired by Google's pedantic package and is MIT-licensed.

Problems it solves

  • a strict, ready-made set of lint rules for my Flutter app
  • enforce the same Dart analysis rules across all of our team's packages
  • pin the lint rules to a version so upgrades don't break CI
  • replace the deprecated pedantic package with a maintained lint set

Features

  • strict lint rules for Dart and Flutter
  • versioned analysis_options files for pinning
  • configures the Dart formatter's trailing commas
  • line, file and project-level suppression

Alternatives

The same job

These do what Very Good Analysis does.

  1. flutter_lints Recommended lints for Flutter apps, packages and plugins
  2. lint (Dart) Stricter, hand-picked lint rules for Dart and Flutter projects
  3. pedantic_mono Stricter recommended lint rules for Flutter and Dart projects
  4. extra_pedantic Stricter Dart analyzer lint settings
  5. lints (Dart) The Dart team's official core and recommended lint sets
  6. Lint Hard Every non-clashing Dart lint plus strict type checks, as a drop-in lints package

Compare Very Good Analysis with the top 3