arxdeus_lints 1.0.1
arxdeus_lints: ^1.0.1 copied to clipboard
A strict, opinionated set of Dart and Flutter analysis options, adopted with one include line. Enables the three strict language modes and 212 lints. Ships no Dart code.
Changelog #
1.0.1 #
Lowers the minimum Dart SDK from 3.13.2 to 3.11.0. Nothing else changed: every dependency already resolved on 3.11, so the old constraint kept consumers off earlier stable SDKs for no reason.
1.0.0 #
First release.
This package ships exactly one thing, a shared analysis options file, adopted
in one line from your own analysis_options.yaml:
include: package:arxdeus_lints/analysis_options/recommended.yaml
What that file configures:
- The three strict language modes together:
strict-casts,strict-inferenceandstrict-raw-types. - 212 lints enabled, of which 20 are promoted to errors and 37 to warnings.
- Three lints that no
// ignore:comment can silence:avoid_dynamic_calls,close_sinksandcancel_subscriptions.
Notes:
- The package contains no Dart code at all, so nothing it ships can reach your
program at runtime. It belongs in
dev_dependencies. - It deliberately sets no
analyzer.exclude, because exclude paths are per-project. Set yours alongside the include. example/is a small project that adopts the options, with one file whose every reported diagnostic demonstrates a specific thing the configuration does.
The annotation-driven lint rules that were developed alongside these options are not part of this package. Each is published separately, one package per annotation, so a project takes only the ones it wants.