-
Notifications
You must be signed in to change notification settings - Fork 142
/
analysis_options.yaml
59 lines (57 loc) · 1.75 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
include: package:lints/recommended.yaml
analyzer:
language:
#strict-casts: true
linter:
rules:
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_double_and_int_checks
- avoid_field_initializers_in_const_classes
- avoid_implementing_value_types
- avoid_js_rounded_ints
- avoid_private_typedef_functions
- avoid_returning_this
- avoid_setters_without_getters
- avoid_slow_async_io
- avoid_unused_constructor_parameters
- avoid_void_async
- cancel_subscriptions
- close_sinks
- comment_references
- diagnostic_describe_all_properties
- directives_ordering
- join_return_with_assignment
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- omit_local_variable_types
- one_member_abstracts
- only_throw_errors
- package_api_docs
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_constructors_over_static_methods
- prefer_final_in_for_each
- prefer_foreach
- prefer_if_elements_to_conditional_expressions
- prefer_int_literals
- prefer_mixin
- sort_child_properties_last
- sort_pub_dependencies
- sort_unnamed_constructors_first
- test_types_in_equals
- throw_in_finally
- type_annotate_public_apis
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_parenthesis
- unnecessary_statements
- use_full_hex_values_for_flutter_colors
- use_setters_to_change_properties
- use_string_buffers
- use_to_and_as_if_applicable