-
Notifications
You must be signed in to change notification settings - Fork 11
/
analysis_options.yaml
45 lines (43 loc) · 1.22 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
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
errors:
unused_local_variable: warning
invalid_assignment: warning
invalid_annotation_target: ignore
missing_return: error
annotate_overrides: error
always_specify_types: warning
dead_code: warning
todo: info
linter:
rules:
prefer_is_not_empty: true
avoid_print: true
prefer_relative_imports: true
constant_identifier_names: true
non_constant_identifier_names: true
avoid_type_to_string: true
camel_case_types: true
empty_constructor_bodies: true
prefer_const_constructors: true
prefer_const_deceleration: true
prefer_single_quotes: true
avoid_empty_else: true
cancel_subscriptions: true
close_sinks: true
prefer_conditional_assignment: true
cast_nullable_to_non_nullable: 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
unawaited_futures: true
await_only_futures: true
unnecessary_lambdas: true
unnecessary_await_in_return: true
unnecessary_final: true