-
Notifications
You must be signed in to change notification settings - Fork 86
Apply dart_flutter_team_lints set
#2712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Makes the packages in this repo conformant with the recommended set of lints for packages maintained by the Dart and Flutter teams. This is done in preparation for migrating these packages into the Dart SDK.
parlough
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :D
| # - avoid-double-slash-imports | ||
| - avoid-duplicate-exports | ||
| # - avoid-dynamic | ||
| # - avoid-Object? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # - avoid-Object? | |
| # - avoid-dynamic |
| - always_declare_return_types | ||
| - avoid_classes_with_only_static_members | ||
| - avoid_returning_this | ||
| - avoid_unused_constructor_parameters | ||
| - avoid_void_async | ||
| - cancel_subscriptions | ||
| - directives_ordering | ||
| - join_return_with_assignment | ||
| - library_names | ||
| - literal_only_boolean_expressions | ||
| - omit_local_variable_types | ||
| - only_throw_errors | ||
| - package_prefixed_library_names | ||
| - prefer_final_in_for_each | ||
| - prefer_final_locals | ||
| - prefer_single_quotes | ||
| # - prefer_relative_imports | ||
| - prefer_void_to_null | ||
| - test_types_in_equals | ||
| - throw_in_finally | ||
| - unawaited_futures | ||
| - unnecessary_lambdas | ||
| - unnecessary_parenthesis | ||
| - unnecessary_statements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider removing the lints already in dart_flutter_team_lints:
| - avoid_classes_with_only_static_members | |
| - avoid_returning_this | |
| - avoid_unused_constructor_parameters | |
| - avoid_void_async | |
| - cancel_subscriptions | |
| - join_return_with_assignment | |
| - library_names | |
| - literal_only_boolean_expressions | |
| - package_prefixed_library_names | |
| - prefer_final_in_for_each | |
| - prefer_final_locals | |
| - prefer_void_to_null |
Makes the packages in this repo conformant with the recommended set of lints for packages maintained by the Dart and Flutter teams. This is done in preparation for migrating these packages into the Dart SDK.
This change also removes all usages of
dynamic, replacing them withObject?.