Skip to content

Instantly share code, notes, and snippets.

@Metal-666
Created April 26, 2023 22:06
Show Gist options
  • Select an option

  • Save Metal-666/5965ce5e9e4818ba252ca7556c7ffc3d to your computer and use it in GitHub Desktop.

Select an option

Save Metal-666/5965ce5e9e4818ba252ca7556c7ffc3d to your computer and use it in GitHub Desktop.
My favorite analysis options for Flutter
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