-
Notifications
You must be signed in to change notification settings - Fork 42
/
analysis_options.yaml
57 lines (55 loc) · 1.94 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
include: package:very_good_analysis/analysis_options.yaml
analyzer:
errors:
avoid_classes_with_only_static_members: ignore
leading_newlines_in_multiline_strings: ignore
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
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'
- 'lib/src/state/**.pb.dart'
linter:
rules:
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_asserts_with_message: false
flutter_style_todos: false