Migrate to Flutter_Lints
Migration weg von effective_dart hin zu flutter_lints.
Effective_Dart
ist mittlerweile deprecated
!
Damit unser code style nicht bricht werden jedoch in Flutter_Lints
fehlende Effective_Dart
lints in unserer analysis_options.yaml
wieder angeschaltet.
Nun bekommen wir ~2500 Hinweise aus diesen Regeln:
-
await_only_futures -
annotate_overrides -
avoid_print -
empty_catches -
empty_statements -
avoid_returning_null_for_void -
avoid_unnecessary_containers -
unnecessary_null_in_if_null_operators -
no_duplicate_case_values -
void_checks -
overridden_fields -
no_logic_in_create_state -
avoid_renaming_method_parameters -
prefer_void_to_null -
iterable_contains_unrelated_type -
prefer_const_literals_to_create_immutables -
prefer_const_declarations -
prefer_const_constructors -
prefer_const_constructors_in_immutables -
prefer_is_not_operator -
prefer_conditional_assignment -
prefer_if_null_operators -
sized_box_for_whitespace -
always_require_non_null_named_parametersc -
unnecessary_string_interpolations -
use_key_in_widget_constructors
Edited by Robert Palm