-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
analysis_options.yaml
50 lines (47 loc) · 1.42 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
include: package:flutter_lints/flutter.yaml
analyzer:
errors:
todo: ignore
sort_unnamed_constructors_first: warning
invalid_assignment: warning
missing_return: error
dead_code: info
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.config.dart"
- "**/*.gr.dart"
linter:
rules:
avoid_print: true
prefer_single_quotes: true
always_declare_return_types: true
cancel_subscriptions: true
close_sinks: true
comment_references: true
one_member_abstracts: true
only_throw_errors: true
package_api_docs: true
sort_child_properties_last: true
always_put_control_body_on_new_line: true
avoid_bool_literals_in_conditional_expressions: true
avoid_field_initializers_in_const_classes: true
avoid_function_literals_in_foreach_calls: true
avoid_slow_async_io: true
avoid_unused_constructor_parameters: true
avoid_void_async: true
directives_ordering: true
no_adjacent_strings_in_list: true
prefer_asserts_in_initializer_lists: true
prefer_final_in_for_each: true
prefer_final_locals: true
prefer_foreach: true
sort_constructors_first: true
sort_unnamed_constructors_first: false
test_types_in_equals: true
throw_in_finally: true
unnecessary_null_aware_assignments: true
unnecessary_statements: true
unrelated_type_equality_checks: true
require_trailing_commas: true
eol_at_end_of_file: true