-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
43 lines (38 loc) · 1.01 KB
/
analysis_options.yaml
File metadata and controls
43 lines (38 loc) · 1.01 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:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
missing_required_param: error
missing_return: error
dead_code: warning
unused_import: warning
unused_local_variable: warning
linter:
rules:
# Code style
prefer_const_constructors: true
prefer_const_declarations: true
prefer_final_fields: true
prefer_final_locals: true
prefer_single_quotes: true
# Documentation
public_member_api_docs: true
# Best practices
avoid_print: true
avoid_empty_else: true
avoid_relative_lib_imports: true
avoid_slow_async_io: true
avoid_type_to_string: true
cancel_subscriptions: true
close_sinks: true
comment_references: true
only_throw_errors: true
throw_in_finally: true
unnecessary_statements: true
# Flutter specific
use_build_context_synchronously: true
sized_box_for_whitespace: true
use_key_in_widget_constructors: true