-
Notifications
You must be signed in to change notification settings - Fork 13
/
analysis_options.yaml
59 lines (57 loc) · 2.01 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
include: package:very_good_analysis/analysis_options.yaml
analyzer:
errors:
public_member_api_docs: ignore
lines_longer_than_80_chars: ignore
avoid_function_literals_in_foreach_calls: ignore
control_flow_in_finally: true
body_might_complete_normally_nullable: ignore
exclude:
- 'bin/cache/**'
# the following two are relative to the stocks example and the flutter package respectively
# see https://github.com/dart-lang/sdk/issues/28463
- 'lib/i18n/messages_*.dart'
- 'lib/src/http/**'
# custom
- 'lib/generated/**'
- '**.g.dart'
# - 'editable/**'
linter:
rules:
prefer_const_constructors_in_immutables: true
prefer_relative_imports: true
avoid_relative_lib_imports: false
avoid_redundant_argument_values: false
always_use_package_imports: false
sort_pub_dependencies: false
prefer_int_literals: false
prefer_final_locals: true
avoid_void_async: true
unnecessary_await_in_return: true
prefer_expression_function_bodies: true
avoid_field_initializers_in_const_classes: true
file_names: true
unnecessary_parenthesis: true
prefer_void_to_null: true
avoid_bool_literals_in_conditional_expressions: true
avoid_returning_null_for_void: true
prefer_function_declarations_over_variables: true
empty_statements: true
prefer_is_not_operator: true
cast_nullable_to_non_nullable: true
avoid_classes_with_only_static_members: true
type_annotate_public_apis: true
prefer_const_literals_to_create_immutables: true
use_named_constants: true
use_string_buffers: true
unnecessary_raw_strings: true
unnecessary_null_checks: true
parameter_assignments: true
prefer_const_declarations: true
sort_unnamed_constructors_first: true
use_setters_to_change_properties: true
curly_braces_in_flow_control_structures: true
use_build_context_synchronously: false
require_trailing_commas: false
prefer_asserts_with_message: false
prefer_constructors_over_static_methods: false