-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
47 lines (45 loc) · 1.41 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
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- lib/**/*.g.dart
- lib/generated_plugin_registrant.dart
strong-mode:
implicit-casts: false
errors:
avoid_unused_constructor_parameters: warning
unrelated_type_equality_checks: error
iterable_contains_unrelated_type: error
missing_required_param: error
missing_return: warning
unnecessary_null_comparison: error
unnecessary_non_null_assertion: error
always_declare_return_types: error
linter:
rules:
- avoid_bool_literals_in_conditional_expressions
- avoid_positional_boolean_parameters
- parameter_assignments
- prefer_null_aware_method_calls
- use_is_even_rather_than_modulo
- use_named_constants
- require_trailing_commas
- avoid_escaping_inner_quotes
- prefer_single_quotes
- cancel_subscriptions
- close_sinks
- always_use_package_imports
- avoid_annotating_with_dynamic
- avoid_multiple_declarations_per_line
- avoid_unused_constructor_parameters
- avoid_redundant_argument_values
- always_declare_return_types
- lines_longer_than_80_chars
- sort_constructors_first
- sort_unnamed_constructors_first
- cascade_invocations
- avoid_single_cascade_in_expression_statements
- sort_child_properties_last
- control_flow_in_finally
- throw_in_finally
- avoid_catches_without_on_clauses
- use_build_context_synchronously