-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
53 lines (48 loc) · 1.54 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
# 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:pedantic/analysis_options.yaml
# For lint rules and documentation, see https://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
linter:
rules:
constant_identifier_names: true
prefer_const_constructors: true
sort_constructors_first: true
omit_local_variable_types: false
prefer_function_declarations_over_variables: true
annotate_overrides: true
hash_and_equals: true
prefer_is_not_empty: true
avoid_print: true
avoid_type_to_string: true
avoid_slow_async_io: true
camel_case_types: true
empty_constructor_bodies: true
prefer_single_quotes: true
lines_longer_than_80_chars: true
avoid_empty_else: true
cancel_subscriptions: true
close_sinks: true
prefer_conditional_assignment: true
cast_nullable_to_non_nullable: true
always_specify_types: true
avoid_returning_null_for_future: true
always_declare_return_types: true
avoid_returning_null: true
avoid_returning_null_for_void: true
avoid_returning_this: true
avoid_void_async: true
unnecessary_await_in_return: true
unnecessary_final: true
sort_pub_dependencies: true
package_names: true
analyzer:
errors:
always_specify_types: error
unused_local_variable: warning
invalid_assignment: warning
missing_return: error
dead_code: warning
exclude:
- path/to/excluded/files/**