forked from filipemorelli/flutter_mobx_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
55 lines (52 loc) · 1.89 KB
/
analysis_options.yaml
File metadata and controls
55 lines (52 loc) · 1.89 KB
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
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "bin/cache/**"
- "lib/**/*.g.dart"
- "test/**/*.mocks.dart"
linter:
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
always_declare_return_types: true
avoid_classes_with_only_static_members: true
avoid_positional_boolean_parameters: true
avoid_returning_this: true
avoid_shadowing_type_parameters: true
avoid_types_as_parameter_names: true
avoid_types_on_closure_parameters: true
await_only_futures: true
camel_case_types: true
directives_ordering: true
empty_catches: true
file_names: true
hash_and_equals: true
no_duplicate_case_values: true
non_constant_identifier_names: true
omit_local_variable_types: true
one_member_abstracts: true
prefer_final_fields: true
prefer_final_locals: true
prefer_if_null_operators: true
prefer_interpolation_to_compose_strings: true
prefer_mixin: true
prefer_relative_imports: true
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
sort_child_properties_last: true
unawaited_futures: true
unnecessary_brace_in_string_interps: true
unnecessary_lambdas: true
unnecessary_await_in_return: true
unrelated_type_equality_checks: true
use_setters_to_change_properties: true
use_to_and_as_if_applicable: true
valid_regexps: true
avoid_void_async: true
use_super_parameters: true
library_private_types_in_public_api: false
avoid_function_literals_in_foreach_calls: false
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options