-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathanalysis_options.yaml
51 lines (39 loc) · 1.42 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
include: package:lint/analysis_options.yaml
# Customize the rules depending on your needs.
linter:
rules:
# Make constructors the first thing in every class
sort_constructors_first: true
# The new tabs vs. spaces. Choose wisely
prefer_single_quotes: true
# Good packages document everything
public_member_api_docs: false
# Blindly follow the Flutter code style, which prefers types everywhere
always_specify_types: false
# Back to the 80s
lines_longer_than_80_chars: true
# Use parameter order as in json response
always_put_required_named_parameters_first: false
# Util classes are awesome!
avoid_classes_with_only_static_members: false
avoid_bool_literals_in_conditional_expressions: false
# lint Analyzer
analyzer:
errors:
argument_type_not_assignable: ignore
invalid_assignment: ignore
return_of_invalid_type_from_closure: ignore
avoid_relative_lib_imports: error
prefer_single_quotes: error
unnecessary_await_in_return: error
always_declare_return_types: warning
file_names: ignore
avoid_void_async: error
sized_box_for_whitespace: warning
lines_longer_than_80_chars: ignore
unused_local_variable: error
prefer_const_literals_to_create_immutables: ignore
avoid_redundant_argument_values: error
avoid_single_cascade_in_expression_statements: ignore
unnecessary_getters_setters: ignore
undefined_getter: ignore