Created
April 26, 2023 22:06
-
-
Save Metal-666/5965ce5e9e4818ba252ca7556c7ffc3d to your computer and use it in GitHub Desktop.
My favorite analysis options for Flutter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include: package:flutter_lints/flutter.yaml | |
| analyzer: | |
| language: | |
| strict-casts: true | |
| strict-inference: true | |
| strict-raw-types: true | |
| linter: | |
| rules: | |
| always_declare_return_types: true | |
| avoid_bool_literals_in_conditional_expressions: true | |
| avoid_void_async: true | |
| cancel_subscriptions: true | |
| close_sinks: true | |
| discarded_futures: true | |
| only_throw_errors: true | |
| prefer_const_declarations: true | |
| prefer_expression_function_bodies: true | |
| prefer_final_fields: true | |
| prefer_final_in_for_each: true | |
| prefer_final_locals: true | |
| prefer_final_parameters: true | |
| prefer_foreach: true | |
| prefer_relative_imports: true | |
| prefer_single_quotes: true | |
| require_trailing_commas: true | |
| sort_pub_dependencies: true | |
| unawaited_futures: true | |
| use_if_null_to_convert_nulls_to_bools: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment