tidy 2.14.0-0 copy "tidy: ^2.14.0-0" to clipboard
tidy: ^2.14.0-0 copied to clipboard

outdated

A completionist set of lint rules, aligned with Dart SDK versions.

Pub

tidy #

The complete annotated set of Dart analysis options, mostly enabled.

See tool/compare.sh for a diff with all rules. Opinionated bits are commented.

Note a rule's existence upstream does not imply stability, or publication to dart-lang.github.io/linter.

Usage #

$ dart pub add -d tidy
# or flutter pub pub add -d tidy
  • Include the rules in analysis_options.yaml at the root of your project:
include package:tidy/analysis_options.yaml  # or specify a version: analysis_options.1.0.0.yaml

# You probably do want some customization.
analyzer:
  exclude:
    - lib/src/**/*.g.dart
  errors:
    import_of_legacy_library_into_null_safe: ignore

# Override to taste as your project evolves.
# https://dart.dev/guides/language/analysis-options#disabling-individual-rules
linter:
  rules:
    public_member_api_docs: true
    use_key_in_widget_constructors: true
    prefer_final_locals: true
    unnecessary_final: false

Versioning #

This package follows Dart SDK versions, and aims to maintain parity with rules available in the stable channel.

Its minimum SDK constraint will bump accordingly. (Your project's Dart version must have package:linter with the rules you want to enable.)

In particular, your Flutter version may not ship the latest stable Dart.

Contributing #

Please open a PR if upstream lands a rule not included here.

Steal this badge! #

style: tidy

[![style: tidy](https://img.shields.io/badge/style-tidy-43caf5.svg)](https://pub.dev/packages/tidy)
6
likes
0
pub points
8%
popularity

Publisher

verified publisherpracticalflutter.com

A completionist set of lint rules, aligned with Dart SDK versions.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on tidy