You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Defines a default set of lint rules enforced for
2
-
# projects at Google. For details and rationale,
3
-
# see https://github.com/dart-lang/pedantic#enabled-lints.
4
-
include: package:lints/recommended.yaml
1
+
include: package:flutter_lints/flutter.yaml
5
2
6
3
analyzer:
7
4
errors:
@@ -20,156 +17,3 @@ analyzer:
20
17
21
18
linter:
22
19
rules:
23
-
# these rules are documented on and in the same order as
24
-
# the Dart Lint rules page to make maintenance easier
25
-
# http://dart-lang.github.io/linter/lints/
26
-
27
-
# HP mostly in sync with https://github.com/flutter/flutter/blob/master/analysis_options.yaml
28
-
29
-
- always_declare_return_types
30
-
- always_put_control_body_on_new_line
31
-
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
32
-
- always_require_non_null_named_parameters
33
-
#- always_specify_types
34
-
- annotate_overrides
35
-
# - avoid_annotating_with_dynamic # not yet tested
36
-
# - avoid_as
37
-
- avoid_bool_literals_in_conditional_expressions
38
-
# - avoid_catches_without_on_clauses # not yet tested
39
-
# - avoid_catching_errors # not yet tested
40
-
# - avoid_classes_with_only_static_members # not yet tested
41
-
# - avoid_double_and_int_checks # only useful when targeting JS runtime
42
-
- avoid_empty_else
43
-
- avoid_field_initializers_in_const_classes
44
-
- avoid_function_literals_in_foreach_calls
45
-
# - avoid_implementing_value_types # not yet tested
46
-
- avoid_init_to_null
47
-
# - avoid_js_rounded_ints # only useful when targeting JS runtime
48
-
- avoid_null_checks_in_equality_operators
49
-
# - avoid_positional_boolean_parameters # not yet tested
50
-
# - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
51
-
- avoid_relative_lib_imports
52
-
- avoid_renaming_method_parameters
53
-
- avoid_return_types_on_setters
54
-
# - avoid_returning_null # not yet tested
55
-
# - avoid_returning_null_for_future # not yet tested
56
-
- avoid_returning_null_for_void
57
-
# - avoid_returning_this # not yet tested
58
-
# - avoid_setters_without_getters # not yet tested
59
-
# - avoid_shadowing_type_parameters # not yet tested
60
-
# - avoid_single_cascade_in_expression_statements # not yet tested
61
-
- avoid_slow_async_io
62
-
- avoid_types_as_parameter_names
63
-
# - avoid_types_on_closure_parameters # not yet tested
64
-
- avoid_unused_constructor_parameters
65
-
- avoid_void_async
66
-
- await_only_futures
67
-
- camel_case_types
68
-
- cancel_subscriptions
69
-
# - cascade_invocations # not yet tested
70
-
# - close_sinks # not reliable enough
71
-
# - comment_references # blocked on https://github.com/flutter/flutter/issues/20765
0 commit comments