-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathanalysis_options.yaml
41 lines (39 loc) · 1.24 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
# Include official Dart lint rules to meet pub requirements
include: package:lints/recommended.yaml
# Analyzer documentation, see https://www.dartlang.org/guides/language/analysis-options
analyzer:
errors:
await_only_futures: error
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
linter:
rules:
- always_declare_return_types
- avoid_catches_without_on_clauses
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_slow_async_io
- cancel_subscriptions
- close_sinks
- comment_references
- join_return_with_assignment
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- one_member_abstracts
- only_throw_errors
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_constructors_over_static_methods
- prefer_final_locals
- prefer_foreach
- prefer_single_quotes
- sort_unnamed_constructors_first
- test_types_in_equals
- throw_in_finally
- unawaited_futures
- unnecessary_null_aware_assignments
- unsafe_html
- use_string_buffers
- use_to_and_as_if_applicable