The lints currently applied by flutter analyze to flutter applications created with flutter create is outdated: analysis_options_user.yaml received its last meaningful update in October 2019. This umbrella issue tracks the work necessary to update those lints and align the set of lints recommended for Flutter application with the Dart universe.
Details of the approach are discussed in http://flutter.dev/go/flutter-lints.
Work Items
Punted
We've decided to remove unawaited_futures and prefer_mixins from the lint set for now so the following issues are no longer blocking and can be addressed later.
/cc @pq @Hixie @mit-mit @munificent @devoncarew I think these are the work items that came out of our meeting the other day.
The lints currently applied by
flutter analyzeto flutter applications created withflutter createis outdated:analysis_options_user.yamlreceived its last meaningful update in October 2019. This umbrella issue tracks the work necessary to update those lints and align the set of lints recommended for Flutter application with the Dart universe.Details of the approach are discussed in http://flutter.dev/go/flutter-lints.
Work Items
avoid_private_typedef_functionsfromcore.yamlomit_local_variable_typeslint (Update: Removed fromrecommend.yaml)core.yaml,recommend.yaml, and potentially a Flutter-specific lint file are published in a packageflutter createto generate ananalysis_options.yamlfile importing the new recommended set of lints from that package (RFC: Integrate package:flutter_lints into templates #81417)analysis_options_user.yamlwith a message (duringflutter analyze) to upgrade to a customanalysis_options.yamlfile importing the new recommended set of lintsPunted
We've decided to remove
unawaited_futuresandprefer_mixinsfrom the lint set for now so the following issues are no longer blocking and can be addressed later.unawaited_futureslint is ready for Flutter code:NavigatorandAnimationControllermethods, maybe others)prefer_mixinslint is ready for Flutter code:ChangeNotifierandWidgetsBindingObserver, enable lint in flutter codebase for dogfooding/cc @pq @Hixie @mit-mit @munificent @devoncarew I think these are the work items that came out of our meeting the other day.