-
Notifications
You must be signed in to change notification settings - Fork 118
/
analysis_options.yaml
46 lines (44 loc) · 1.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
include: package:lints/recommended.yaml
analyzer:
errors:
todo: ignore
unused_import: warning
unused_shown_name: warning
language:
# TODO(srawlins) Enable strict-casts.
# strict-casts: true
strict-raw-types: true
strict-inference: true
exclude:
- 'doc/**'
- 'testing/**'
linter:
rules:
- always_declare_return_types
- always_put_required_named_parameters_first
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_dynamic_calls
- avoid_slow_async_io
- avoid_unused_constructor_parameters
- dangling_library_doc_comments
- directives_ordering
- invalid_case_patterns
- library_annotations
- no_adjacent_strings_in_list
- no_literal_bool_comparisons
- omit_local_variable_types
- only_throw_errors
- package_api_docs
- prefer_asserts_in_initializer_lists
- prefer_null_aware_method_calls
- prefer_single_quotes
- sort_child_properties_last
- sort_pub_dependencies
- type_annotate_public_apis
- unawaited_futures
- unnecessary_lambdas
- unnecessary_library_directive
- unnecessary_parenthesis
- unnecessary_statements
- unnecessary_breaks