-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
38 lines (33 loc) · 960 Bytes
/
analysis_options.yaml
File metadata and controls
38 lines (33 loc) · 960 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
35
36
37
38
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- ".dart_tool/**"
- ".pub/**"
- "build/**"
- "example/**/build/**"
- "example/.dart_tool/**"
- "test/**/.dart_tool/**"
- "lib/src/gen/**"
linter:
rules:
# API and typing
always_declare_return_types: true
annotate_overrides: true
# Style and consistency
prefer_const_constructors: true
prefer_const_constructors_in_immutables: true
prefer_const_literals_to_create_immutables: true
prefer_final_fields: true
prefer_final_locals: true
prefer_single_quotes: true
file_names: true
# Safety and correctness
avoid_returning_this: true
use_rethrow_when_possible: true
unnecessary_this: true
unnecessary_const: true
no_leading_underscores_for_local_identifiers: false # keep default, adjust if needed
# Maintainability
avoid_print: true
test_types_in_equals: true
hash_and_equals: true