-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
29 lines (26 loc) · 872 Bytes
/
analysis_options.yaml
File metadata and controls
29 lines (26 loc) · 872 Bytes
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
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
linter:
rules:
# Additional rules for better code quality
avoid_print: true
avoid_unnecessary_containers: true
avoid_web_libraries_in_flutter: true
no_logic_in_create_state: true
prefer_const_constructors: true
prefer_const_constructors_in_immutables: true
prefer_const_declarations: true
prefer_const_literals_to_create_immutables: true
prefer_final_fields: true
prefer_final_in_for_each: true
prefer_final_locals: true
sized_box_for_whitespace: true
sort_child_properties_last: true
use_key_in_widget_constructors: true
use_super_parameters: true