-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
62 lines (59 loc) · 1.79 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
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- lib/**.g.dart
- test/**.mocks.dart
- lib/generated_plugin_registrant.dart
strong-mode:
implicit-casts: false
errors:
missing_required_param: error
unrelated_type_equality_checks: error
missing_return: warning
close_sinks: warning
cancel_subscriptions: warning
parameter_assignments: warning
prefer_final_in_for_each: warning
prefer_mixin: warning
unawaited_futures: warning
unnecessary_await_in_return: warning
unnecessary_null_aware_assignments: warning
use_decorated_box: warning
use_string_buffers: warning
avoid_unnecessary_containers: warning
use_if_null_to_convert_nulls_to_bools: warning
linter:
rules:
- always_declare_return_types
- avoid_bool_literals_in_conditional_expressions
- avoid_escaping_inner_quotes
- avoid_positional_boolean_parameters
- parameter_assignments
- prefer_null_aware_method_calls
- require_trailing_commas
- use_is_even_rather_than_modulo
- use_named_constants
- use_to_and_as_if_applicable
- prefer_relative_imports
- avoid_unused_constructor_parameters
- sort_child_properties_last
- directives_ordering
- close_sinks
- cancel_subscriptions
- unnecessary_statements
- avoid_annotating_with_dynamic
- prefer_final_locals
- prefer_final_in_for_each
- prefer_interpolation_to_compose_strings
- prefer_mixin
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_parenthesis
- unnecessary_raw_strings
- use_decorated_box
- use_if_null_to_convert_nulls_to_bools
- use_string_buffers
- avoid_unnecessary_containers
- use_build_context_synchronously