-
Notifications
You must be signed in to change notification settings - Fork 4
/
analysis_options.yaml
43 lines (41 loc) · 1.52 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
include: package:flutter_lints/flutter.yaml
linter:
rules:
# error rules
avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# always_use_package_imports: true
avoid_empty_else: true
# prefer_relative_imports: true
# avoid_relative_lib_imports: true
avoid_returning_null_for_future: true
avoid_type_to_string: true
avoid_web_libraries_in_flutter: true
cancel_subscriptions: true
empty_statements: true
iterable_contains_unrelated_type: true
list_remove_unrelated_type: true
literal_only_boolean_expressions: true
no_adjacent_strings_in_list: true
no_logic_in_create_state: true
throw_in_finally: true
unrelated_type_equality_checks: true
# style rules
always_declare_return_types: true
always_put_control_body_on_new_line: true
always_put_required_named_parameters_first: true
always_require_non_null_named_parameters: true
avoid_annotating_with_dynamic: true
# avoid_bool_literals_in_conditional_expressions: true
avoid_catches_without_on_clauses: true
avoid_catching_errors: true
avoid_classes_with_only_static_members: true
avoid_double_and_int_checks: true
avoid_function_literals_in_foreach_calls: true
await_only_futures: true
constant_identifier_names: true
file_names: true
flutter_style_todos: true
#
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options