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
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
# - "missing_whitespace_between_adjacent_strings" disabled (too many false
9
+
# positives),
7
10
# - "sort_constructors_first" disabled (because we have private fake
8
11
# constructors),
9
12
# - "prefer_final_fields" disabled (because we do weird things with
10
-
# private fields, especially on the PlatformDispatcher object):
13
+
# private fields, especially on the PlatformDispatcher object),
14
+
# - "public_member_api_docs" enabled.
11
15
12
16
analyzer:
13
-
enable-experiment:
14
-
- non-nullable
15
17
exclude: [
16
18
# this test pretends to be part of dart:ui and results in lots of false
17
19
# positives.
@@ -32,9 +34,8 @@ analyzer:
32
34
todo: ignore
33
35
# allow dart:ui to import dart:_internal
34
36
import_internal_library: ignore
35
-
# `flutter analyze` (without `--watch`) just ignores directories
36
-
# that contain a .dartignore file, and this file does not have any
37
-
# effect on what files are actually analyzed.
37
+
# Turned off until null-safe rollout is complete.
38
+
unnecessary_null_comparison: ignore
38
39
39
40
linter:
40
41
rules:
@@ -44,56 +45,89 @@ linter:
44
45
- always_declare_return_types
45
46
- always_put_control_body_on_new_line
46
47
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
47
-
# always_require_non_null_named_parameters # DIFFERENT FROM FLUTTER/FLUTTER
48
+
#- always_require_non_null_named_parameters # DIFFERENT FROM FLUTTER/FLUTTER
48
49
- always_specify_types
50
+
# - always_use_package_imports # we do this commonly
49
51
- annotate_overrides
50
52
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
51
-
# - avoid_as # required for implicit-casts: false
52
-
# - avoid_bool_literals_in_conditional_expressions # not yet tested
53
+
- avoid_bool_literals_in_conditional_expressions
53
54
# - avoid_catches_without_on_clauses # we do this commonly
54
55
# - avoid_catching_errors # we do this commonly
55
56
- avoid_classes_with_only_static_members # We want to avoid classes that can be instantiated but only have statics
57
+
# - avoid_double_and_int_checks # only useful when targeting JS runtime
58
+
# - avoid_dynamic_calls # not yet tested
56
59
- avoid_empty_else
60
+
# - avoid_equals_and_hash_code_on_mutable_classes # DIFFERENT FROM FLUTTER/FLUTTER
61
+
# - avoid_escaping_inner_quotes # not yet tested
62
+
- avoid_field_initializers_in_const_classes
57
63
- avoid_function_literals_in_foreach_calls
64
+
# - avoid_implementing_value_types # not yet tested
58
65
- avoid_init_to_null
66
+
# - avoid_js_rounded_ints # only useful when targeting JS runtime
59
67
- avoid_null_checks_in_equality_operators
60
68
# - avoid_positional_boolean_parameters # not yet tested
69
+
# - avoid_print # not yet tested
61
70
# - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
71
+
# - avoid_redundant_argument_values # not yet tested
0 commit comments