-
Notifications
You must be signed in to change notification settings - Fork 321
/
analysis_options.yaml
40 lines (38 loc) · 1.25 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
include: package:flutter_lints/flutter.yaml
analyzer:
errors:
always_declare_return_types: error
always_put_control_body_on_new_line: warning
avoid_renaming_method_parameters: error
avoid_void_async: error
camel_case_types: error
constant_identifier_names: error
deprecated_member_use_from_same_package: ignore
non_constant_identifier_names: error
prefer_single_quotes: warning
require_trailing_commas: warning
invalid_annotation_target: false
linter:
rules:
always_declare_return_types: true
always_put_control_body_on_new_line: true
avoid_print: true
avoid_unnecessary_containers: true
avoid_void_async: true
curly_braces_in_flow_control_structures: true
directives_ordering: true
prefer_const_constructors: true
prefer_const_constructors_in_immutables: false
prefer_final_fields: true
prefer_final_in_for_each: true
prefer_final_locals: true
prefer_single_quotes: true
require_trailing_commas: true
sort_child_properties_last: true
sort_constructors_first: true
sort_unnamed_constructors_first: true
unnecessary_await_in_return: true
unnecessary_late: true
unnecessary_parenthesis: true
use_build_context_synchronously: false
void_checks: true