This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
analysis_options.yaml
80 lines (78 loc) · 2.35 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
include: package:flutter_lints/flutter.yaml
analyzer:
plugins:
- dart_code_metrics
exclude:
- lib/**/*.g.dart
- lib/**/*.gr.dart
- lib/**/*.freezed.dart
- test/.test_coverage.dart
linter:
rules:
- always_use_package_imports
- avoid_slow_async_io
- avoid_type_to_string
- cancel_subscriptions
- close_sinks
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- test_types_in_equals
- throw_in_finally
- unnecessary_statements
- always_declare_return_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- avoid_annotating_with_dynamic
- avoid_bool_literals_in_conditional_expressions
- avoid_classes_with_only_static_members
- avoid_double_and_int_checks
- avoid_equals_and_hash_code_on_mutable_classes
- avoid_escaping_inner_quotes
- avoid_implementing_value_types
- avoid_multiple_declarations_per_line
- avoid_returning_null
- avoid_returning_this
- avoid_types_on_closure_parameters
- avoid_unused_constructor_parameters
- avoid_void_async
- cascade_invocations
- deprecated_consistency
- directives_ordering
- do_not_use_environment
- avoid_catches_without_on_clauses
- eol_at_end_of_file
- flutter_style_todos
- join_return_with_assignment
- leading_newlines_in_multiline_strings
- missing_whitespace_between_adjacent_strings
- no_runtimeType_toString
- noop_primitive_operations
- omit_local_variable_types
- one_member_abstracts
- prefer_constructors_over_static_methods
- prefer_final_in_for_each
- prefer_final_locals
- prefer_foreach
- prefer_if_elements_to_conditional_expressions
- prefer_int_literals
- prefer_interpolation_to_compose_strings
- prefer_mixin
- prefer_null_aware_method_calls
- prefer_single_quotes
- sort_child_properties_last
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_null_aware_assignments
- unnecessary_parenthesis
- unnecessary_raw_strings
- use_if_null_to_convert_nulls_to_bools
- use_is_even_rather_than_modulo
- use_named_constants
- use_raw_strings
- use_setters_to_change_properties
- use_string_buffers
- use_to_and_as_if_applicable
dart_code_metrics:
rules:
- avoid-returning-widgets