-
Notifications
You must be signed in to change notification settings - Fork 12
/
analysis_options.yaml
130 lines (121 loc) · 4.58 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
include: package:very_good_analysis/analysis_options.4.0.0.yaml
# You might want to exclude auto-generated files from dart analysis
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
exclude:
- "packages/wasm_run/lib/src/bridge_generated.dart"
- "packages/wasm_run/lib/src/bridge_generated.web.dart"
#- '**.freezed.dart'
#- '**.g.dart'
errors:
unrelated_type_equality_checks: error
# avoid_dynamic_calls: warning
always_declare_return_types: warning
await_only_futures: warning
cast_nullable_to_non_nullable: warning
collection_methods_unrelated_type: warning
exhaustive_cases: error
iterable_contains_unrelated_type: warning
library_private_types_in_public_api: warning
list_remove_unrelated_type: warning
prefer_typing_uninitialized_variables: warning
no_duplicate_case_values: error
type_annotate_public_apis: warning
unnecessary_late: warning
unnecessary_overrides: warning
valid_regexps: warning
use_super_parameters: warning
unawaited_futures: warning
prefer_final_locals: warning
unused_element: warning
avoid_empty_else: warning
avoid_relative_lib_imports: warning
avoid_shadowing_type_parameters: warning
avoid_types_as_parameter_names: warning
camel_case_extensions: warning
camel_case_types: warning
curly_braces_in_flow_control_structures: warning
depend_on_referenced_packages: warning
empty_catches: warning
file_names: warning
hash_and_equals: warning
non_constant_identifier_names: warning
null_check_on_nullable_type_parameter: warning
package_prefixed_library_names: warning
prefer_generic_function_type_aliases: warning
prefer_is_empty: warning
prefer_is_not_empty: warning
prefer_iterable_whereType: warning
provide_deprecation_message: warning
void_checks: warning
annotate_overrides: warning
avoid_function_literals_in_foreach_calls: warning
avoid_init_to_null: warning
avoid_null_checks_in_equality_operators: warning
avoid_renaming_method_parameters: warning
avoid_return_types_on_setters: warning
avoid_returning_null_for_void: warning
avoid_single_cascade_in_expression_statements: warning
constant_identifier_names: warning
control_flow_in_finally: warning
empty_constructor_bodies: warning
empty_statements: warning
implementation_imports: warning
library_names: warning
library_prefixes: warning
no_leading_underscores_for_library_prefixes: warning
no_leading_underscores_for_local_identifiers: warning
null_closures: warning
overridden_fields: warning
package_names: warning
prefer_adjacent_string_concatenation: warning
prefer_collection_literals: warning
prefer_conditional_assignment: warning
prefer_contains: warning
prefer_equal_for_default_values: warning
prefer_final_fields: warning
prefer_for_elements_to_map_fromIterable: warning
prefer_function_declarations_over_variables: warning
prefer_if_null_operators: warning
prefer_initializing_formals: warning
prefer_inlined_adds: warning
prefer_interpolation_to_compose_strings: warning
prefer_is_not_operator: warning
prefer_null_aware_operators: warning
prefer_spread_collections: warning
prefer_void_to_null: warning
recursive_getters: warning
slash_for_doc_comments: warning
type_init_formals: warning
unnecessary_brace_in_string_interps: warning
unnecessary_const: warning
unnecessary_constructor_name: warning
unnecessary_getters_setters: warning
unnecessary_new: warning
unnecessary_null_aware_assignments: warning
unnecessary_null_in_if_null_operators: warning
unnecessary_nullable_for_final_variable_declarations: warning
unnecessary_string_escapes: warning
unnecessary_string_interpolations: warning
unnecessary_this: warning
use_function_type_syntax_for_parameters: warning
use_rethrow_when_possible: warning
# You can customize the lint rules set to your own liking. A list of all rules
# can be found at https://dart-lang.github.io/linter/lints/options/options.html
linter:
rules:
avoid_redundant_argument_values: false
omit_local_variable_types: false
sort_constructors_first: false
cascade_invocations: false
join_return_with_assignment: false
# Util classes are awesome!
# avoid_classes_with_only_static_members: false
# Make constructors the first thing in every class
# sort_constructors_first: true
# Choose wisely, but you don't have to
# prefer_double_quotes: true
# prefer_single_quotes: true