-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
73 lines (57 loc) · 1.88 KB
/
analysis_options.yaml
File metadata and controls
73 lines (57 loc) · 1.88 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
include: package:lints/recommended.yaml
formatter:
# Keep trailing commas.
trailing_commas: preserve
# Set the maximum line length.
page_width: 160
# Customize additional linter rules.
linter:
# Specify rules to be enabled or disabled.
rules:
# **Style Rules**
# Enforce using const constructors where possible.
prefer_const_constructors: true
prefer_const_literals_to_create_immutables: true
# Prefer single quotes over double quotes where possible.
prefer_single_quotes: true
# Enforce a consistent type definition for variables.
always_specify_types: false
# **Best Practices**
# Avoid using dynamic types.
avoid_dynamic_calls: true
# Avoid using print statements in production code.
avoid_print: true
# Prefer using the `final` keyword for variables that are not reassigned.
prefer_final_fields: true
prefer_final_locals: true
# **Error Prevention**
# **Documentation**
# Require documentation for public members.
public_member_api_docs: false
# **Other Useful Rules**
# Enforce sorting of directives (e.g., imports).
directives_ordering: true
# Prefer using `isEmpty` and `isNotEmpty` over `length` comparisons.
prefer_is_empty: true
prefer_is_not_empty: true
# **Disable Rules (if necessary)**
# Uncomment the following lines to disable specific lints.
# avoid_unused_constructor_parameters: false
# unnecessary_null_in_if_null_operators: false
# Analyzer settings.
analyzer:
# Exclude certain files or directories from analysis.
exclude:
- "**/*.g.dart"
- "**/build/**"
- "**/generated/**"
- "**/mocks/**"
- "**/*.freezed.dart/**"
# Language-specific analyzer strictness options.
language:
strict-casts: false
strict-inference: false
strict-raw-types: false
strong-mode:
implicit-casts: false
implicit-dynamic: false