-
Notifications
You must be signed in to change notification settings - Fork 75
/
analysis_options.yaml
44 lines (42 loc) · 1.34 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
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
# workaround for https://github.com/dart-lang/sdk/issues/42910
- "example/**"
linter:
rules:
avoid_print: false
unnecessary_overrides: true
always_declare_return_types: true
avoid_dynamic_calls: false
avoid_escaping_inner_quotes: true
avoid_setters_without_getters: true
avoid_function_literals_in_foreach_calls: false
cast_nullable_to_non_nullable: true
close_sinks: true
no_adjacent_strings_in_list: true
no_default_cases: true
omit_local_variable_types: true
only_throw_errors: true
prefer_interpolation_to_compose_strings: true
prefer_single_quotes: true
sort_child_properties_last: true
test_types_in_equals: true
unawaited_futures: true
unnecessary_parenthesis: true
unnecessary_raw_strings: true
unnecessary_statements: true
unsafe_html: true
use_raw_strings: true
sized_box_for_whitespace: true
prefer_const_constructors: true
comment_references: true
avoid_multiple_declarations_per_line: true
noop_primitive_operations: true
cascade_invocations: true
avoid_redundant_argument_values: true
lines_longer_than_80_chars: true
prefer_int_literals: true
prefer_const_constructors_in_immutables: true
avoid_void_async: true
require_trailing_commas: true