-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathanalysis_options.yaml
71 lines (66 loc) · 2.34 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
include: package:very_good_analysis/analysis_options.5.1.0.yaml
analyzer:
language:
strict-inference: false
strict-raw-types: false
errors:
always_use_package_imports: ignore
public_member_api_docs: ignore
lines_longer_than_80_chars: ignore
avoid_function_literals_in_foreach_calls: ignore
avoid_setters_without_getters: ignore
# experimental lint
use_build_context_synchronously: ignore
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/**'
- 'third_party/**'
- 'lib/constants/resources.preview.dart'
linter:
rules:
avoid_renaming_method_parameters: false
prefer_const_constructors_in_immutables: true
prefer_relative_imports: true
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
require_trailing_commas: false
prefer_constructors_over_static_methods: false
flutter_style_todos: false
prefer_asserts_with_message: false
avoid_positional_boolean_parameters: false
depend_on_referenced_packages: false
no_leading_underscores_for_local_identifiers: false
use_if_null_to_convert_nulls_to_bools: false
sort_pub_dependencies: false