-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
analysis_options.yaml
54 lines (52 loc) · 1.69 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
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:lints/recommended.yaml
# Until there are meta linter rules, each desired lint must be explicitly enabled.
# See: https://github.com/dart-lang/linter/issues/288
#
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
# See the configuration guide for more
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
analyzer:
exclude:
- lib/src/version.dart
language:
strict-casts: true
strict-inference: true
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# allow having TODOs in the code
todo: ignore
linter:
rules:
- always_declare_return_types
- avoid_dynamic_calls
- avoid_print
- avoid_slow_async_io
- cancel_subscriptions
- deprecated_member_use_from_same_package
- directives_ordering
- implicit_reopen
- invalid_case_patterns
- invalid_runtime_check_with_js_interop_types
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- no_adjacent_strings_in_list
- no_literal_bool_comparisons
- no_self_assignments
- omit_local_variable_types
- package_api_docs
- package_prefixed_library_names
- prefer_const_constructors
- prefer_const_literals_to_create_immutables
- prefer_if_elements_to_conditional_expressions
- prefer_single_quotes
- public_member_api_docs
- sort_child_properties_last
- test_types_in_equals
- throw_in_finally
- unawaited_futures
- unnecessary_statements
- unsafe_html