-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
100 lines (97 loc) · 3 KB
/
analysis_options.yaml
File metadata and controls
100 lines (97 loc) · 3 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
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
include: package:lints/recommended.yaml
formatter:
page_width: 120
trailing_commas: preserve
linter:
rules:
always_use_package_imports: true
await_only_futures: true
always_declare_return_types: true
cancel_subscriptions: true
close_sinks: true
comment_references: true
only_throw_errors: true
prefer_final_in_for_each: true
prefer_single_quotes: true
avoid_shadowing_type_parameters: true
avoid_dynamic_calls: false
avoid_empty_else: true
avoid_print: true
avoid_relative_lib_imports: true
avoid_returning_null_for_future: true
avoid_slow_async_io: true
avoid_type_to_string: true
avoid_types_as_parameter_names: true
avoid_web_libraries_in_flutter: true
discarded_futures: true
unawaited_futures: true
empty_statements: true
prefer_void_to_null: true
always_put_control_body_on_new_line: true
always_require_non_null_named_parameters: true
annotate_overrides: true
avoid_bool_literals_in_conditional_expressions: true
avoid_escaping_inner_quotes: true
parameter_assignments: true
avoid_function_literals_in_foreach_calls: true
avoid_returning_null_for_void: true
avoid_setters_without_getters: true
avoid_types_on_closure_parameters: true
avoid_unnecessary_containers: true
avoid_void_async: true
camel_case_extensions: true
camel_case_types: true
cascade_invocations: true
constant_identifier_names: true
curly_braces_in_flow_control_structures: true
directives_ordering: true
empty_constructor_bodies: true
exhaustive_cases: true
file_names: true
library_names: true
library_prefixes: true
library_private_types_in_public_api: true
no_leading_underscores_for_library_prefixes: true
omit_local_variable_types: true
prefer_adjacent_string_concatenation: true
prefer_collection_literals: true
prefer_conditional_assignment: true
prefer_const_constructors: true
prefer_const_declarations: true
prefer_contains: true
prefer_expression_function_bodies: true
prefer_final_fields: true
prefer_final_locals: true
prefer_final_parameters: true
prefer_foreach: true
prefer_function_declarations_over_variables: true
prefer_if_null_operators: true
prefer_initializing_formals: true
prefer_inlined_adds: true
prefer_interpolation_to_compose_strings: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_mixin: false
prefer_null_aware_method_calls: true
prefer_null_aware_operators: true
prefer_spread_collections: true
prefer_typing_uninitialized_variables: true
analyzer:
exclude:
- lib/generated/**
- lib/translations/**
- lib/l10n/**
- lib/**/*.g.dart
- test/_data/**
- example/**
- examples/**
errors:
invalid_assignment: warning
missing_return: error
dead_code: error
unused_local_variable: info
unused_element: info
unused_field: info
unused_import: info
unused_shown_name: info