-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
34 lines (31 loc) · 975 Bytes
/
analysis_options.yaml
File metadata and controls
34 lines (31 loc) · 975 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
30
31
32
33
34
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
exclude:
- "build/**"
- "example/build/**"
- "**/*.g.dart"
- "**/*.freezed.dart"
- "ios/**"
- "android/**"
- "windows/**"
- "linux/**"
- "macos/**"
linter:
rules:
# Additional rules for better code quality
avoid_print: false # Allow prints in debug builds
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
sort_child_properties_last: true
use_build_context_synchronously: true
use_key_in_widget_constructors: true