-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
72 lines (67 loc) · 2.19 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
# Copyright 2022 The RotatingIconButton Author. All rights reserved.
# Use of this source code is governed by a MIT-style license that
# can be found in the LICENSE file.
include: package:flutter_lints/flutter.yaml
linter:
rules:
# General linter rules.
prefer_single_quotes: true
avoid_print: true
avoid_unnecessary_containers: true
sized_box_for_whitespace: true
require_trailing_commas: true
prefer_final_locals: true
prefer_final_fields: true
library_private_types_in_public_api: true
camel_case_types: true
file_names: true
library_prefixes: true
non_constant_identifier_names: true
constant_identifier_names: true
directives_ordering: true
lines_longer_than_80_chars: true
curly_braces_in_flow_control_structures: true
prefer_interpolation_to_compose_strings: true
prefer_collection_literals: true
avoid_function_literals_in_foreach_calls: true
avoid_init_to_null: true
prefer_expression_function_bodies: true
prefer_initializing_formals: true
type_init_formals: true
empty_constructor_bodies: true
empty_statements: true
unnecessary_new: true
unnecessary_this: true
unnecessary_const: true
unnecessary_overrides: true
unnecessary_parenthesis: true
unnecessary_lambdas: true
unnecessary_getters_setters: true
unnecessary_string_interpolations: true
avoid_setters_without_getters: true
avoid_returning_null: true
avoid_return_types_on_setters: true
avoid_single_cascade_in_expression_statements: true
avoid_types_on_closure_parameters: true
avoid_void_async: true
cancel_subscriptions: true
close_sinks: true
package_api_docs: true
package_prefixed_library_names: true
prefer_relative_imports: true
test_types_in_equals: true
throw_in_finally: true
unnecessary_statements: true
await_only_futures: true
cascade_invocations: true
no_runtimeType_toString: true
# Package related linter rules.
public_member_api_docs: true
slash_for_doc_comments: true
comment_references: true
analyzer:
errors:
missing_required_param: warning
parameter_assignments: warning
missing_return: error
todo: ignore