forked from g123k/flutter_plugin_device_apps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
86 lines (84 loc) · 2.53 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
analyzer:
exclude:
- "lib/**/translations.dart"
- "**/*.g.dart"
- "**/*.freezed.dart"
errors:
always_specify_types: error
always_declare_return_types: error
camel_case_types: error
always_put_control_body_on_new_line: error
always_put_required_named_parameters_first: error
annotate_overrides: error
avoid_empty_else: error
avoid_types_as_parameter_names: error
avoid_unused_constructor_parameters: error
avoid_unnecessary_containers: error
await_only_futures: error
cancel_subscriptions: error
close_sinks: error
constant_identifier_names: error
control_flow_in_finally: error
directives_ordering: error
empty_constructor_bodies: error
empty_statements: error
iterable_contains_unrelated_type: error
file_names: error
hash_and_equals: error
no_adjacent_strings_in_list: error
no_duplicate_case_values: error
prefer_adjacent_string_concatenation: error
prefer_conditional_assignment: error
prefer_contains: error
prefer_is_empty: error
prefer_is_not_empty: error
prefer_final_fields: error
prefer_single_quotes: error
prefer_spread_collections: error
recursive_getters: error
valid_regexps: error
unnecessary_brace_in_string_interps: error
unnecessary_const: error
unnecessary_new: error
unnecessary_null_in_if_null_operators: error
unnecessary_this: error
unused_import: error
use_rethrow_when_possible: error
linter:
rules:
- always_declare_return_types
- always_specify_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- annotate_overrides
- avoid_empty_else
- avoid_types_as_parameter_names
- avoid_unused_constructor_parameters
- avoid_unnecessary_containers
- await_only_futures
- camel_case_types
- cancel_subscriptions
- close_sinks
- constant_identifier_names
- control_flow_in_finally
- directives_ordering
- empty_constructor_bodies
- empty_statements
- iterable_contains_unrelated_type
- file_names
- hash_and_equals
- no_adjacent_strings_in_list
- no_duplicate_case_values
- prefer_adjacent_string_concatenation
- prefer_conditional_assignment
- prefer_contains
- prefer_final_fields
- prefer_single_quotes
- prefer_spread_collections
- recursive_getters
- valid_regexps
- unnecessary_brace_in_string_interps
- unnecessary_const
- unnecessary_new
- unnecessary_null_in_if_null_operators
- use_rethrow_when_possible