-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
43 lines (39 loc) · 1.02 KB
/
analysis_options.yaml
File metadata and controls
43 lines (39 loc) · 1.02 KB
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
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "**/generated_plugin_registrant.dart"
- "third_party/**"
linter:
rules:
# Error prevention
- avoid_print
- avoid_slow_async_io
- cancel_subscriptions
- close_sinks
- unawaited_futures
- use_build_context_synchronously
- await_only_futures
- avoid_returning_null_for_future
- control_flow_in_finally
- throw_in_finally
# Code quality
- always_declare_return_types
- prefer_single_quotes
- prefer_const_constructors
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_final_locals
- prefer_final_in_for_each
- prefer_final_fields
- sort_constructors_first
- sort_child_properties_last
# Consistency
- directives_ordering
- prefer_relative_imports
- omit_local_variable_types
- use_super_parameters
- unnecessary_late
- unnecessary_lambdas
- unnecessary_raw_strings
- unnecessary_statements