-
Notifications
You must be signed in to change notification settings - Fork 6
/
analysis_options.yaml
63 lines (63 loc) · 2.04 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
include: package:lints/recommended.yaml
analyzer:
exclude:
- "**/*.g.dart"
language:
strict-raw-types: false
errors:
always_declare_return_types: error
always_specify_types: error
always_use_package_imports: error
annotate_overrides: error
argument_type_not_assignable: error
avoid_function_literals_in_foreach_calls: error
avoid_renaming_method_parameters: error
avoid_types_on_closure_parameters: error
avoid_unnecessary_containers: error
await_only_futures: error
curly_braces_in_flow_control_structures: error
dead_code: error
duplicate_import: error
file_names: error
invalid_assignment: error
missing_return: error
prefer_const_constructors: error
prefer_const_constructors_in_immutables: error
prefer_const_declarations: error
prefer_collection_literals: error
prefer_contains: error
prefer_const_literals_to_create_immutables: error
prefer_final_fields: error
prefer_single_quotes: error
public_member_api_docs: error
sized_box_for_whitespace: error
sort_constructors_first: error
sort_pub_dependencies: error
sort_unnamed_constructors_first: error
use_function_type_syntax_for_parameters: error
use_key_in_widget_constructors: error
unnecessary_import: error
unnecessary_string_interpolations: error
unnecessary_this: error
unused_import: error
linter:
rules:
always_declare_return_types: true
always_use_package_imports: false
avoid_bool_literals_in_conditional_expressions: true
avoid_print: false
camel_case_types: true
comment_references: true
directives_ordering: true
no_leading_underscores_for_local_identifiers: true
omit_local_variable_types: true
prefer_relative_imports: true
prefer_single_quotes: true
prefer_spread_collections: true
public_member_api_docs: false
sort_constructors_first: true
sort_pub_dependencies: true
sort_unnamed_constructors_first: true
throw_in_finally: true
type_annotate_public_apis: true
unawaited_futures: true