forked from ntminhdn/Flutter-Bloc-CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
113 lines (111 loc) · 3.2 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
analyzer:
plugins:
- custom_lint
exclude:
- "**/*.g.dart"
- "**/*.graphql.dart"
- "**/*.gr.dart"
- "**/*.freezed.dart"
- "**/*.config.dart"
- "**/*.gen.dart"
- "**/*.mapper.dart"
# - "**/test/**/*.dart"
# - "**/test/*.dart"
- "resources/lib/src/generated/intl/*.dart"
- "resources/lib/src/generated/*.dart"
language:
strict-casts: false
strict-raw-types: true
errors:
unused_import: warning
# invalid_annotation_target: ignore
custom_lint:
rules:
- lines_longer_than_100_chars: false
- incorrect_todo_comment: false
- prefer_named_parameters: false
linter:
rules:
- always_declare_return_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- annotate_overrides
# - avoid_dynamic_calls
- avoid_empty_else
- avoid_init_to_null
- avoid_multiple_declarations_per_line
- avoid_null_checks_in_equality_operators
- avoid_print
# - avoid_redundant_argument_values
- avoid_return_types_on_setters
- avoid_shadowing_type_parameters
- avoid_types_as_parameter_names
- avoid_unnecessary_containers
- avoid_unused_constructor_parameters
- avoid_void_async
- prefer_void_to_null
- void_checks
- await_only_futures
- cancel_subscriptions
- curly_braces_in_flow_control_structures
- directives_ordering
- empty_constructor_bodies
- exhaustive_cases
- file_names
- library_names
- library_prefixes
- collection_methods_unrelated_type
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_duplicate_case_values
- null_closures
# - omit_local_variable_types
- prefer_adjacent_string_concatenation
- prefer_collection_literals
- prefer_conditional_assignment
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_contains
- prefer_equal_for_default_values
- prefer_final_fields
- prefer_final_locals
- prefer_for_elements_to_map_fromIterable
- prefer_generic_function_type_aliases
- prefer_if_null_operators
- prefer_interpolation_to_compose_strings
- prefer_is_empty
- prefer_is_not_empty
- prefer_iterable_whereType
- prefer_single_quotes
- prefer_spread_collections
- recursive_getters
- sized_box_for_whitespace
- slash_for_doc_comments
- sort_child_properties_last
- sort_pub_dependencies
- throw_in_finally
- type_init_formals
- unawaited_futures
- unnecessary_const
- unnecessary_new
- unnecessary_null_in_if_null_operators
- unnecessary_parenthesis
- unnecessary_string_escapes
- unnecessary_string_interpolations
- unnecessary_this
- unrelated_type_equality_checks
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
- use_key_in_widget_constructors
- use_rethrow_when_possible
- valid_regexps
- close_sinks
- flutter_style_todos
- eol_at_end_of_file
- camel_case_extensions
- camel_case_types
- constant_identifier_names
- non_constant_identifier_names
- prefer_relative_imports
- use_super_parameters