-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
37 lines (35 loc) · 1.02 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
37 lines (35 loc) · 1.02 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
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
dead_code: error
unused_element: warning
unused_local_variable: warning
cascade_invocations: warning
unnecessary_lambdas: warning
avoid_positional_boolean_parameters: warning
always_declare_return_types: warning
require_trailing_commas: warning
linter:
rules:
prefer_const_constructors: true
prefer_const_declarations: true
prefer_final_fields: true
prefer_final_locals: true
prefer_single_quotes: true
# Code structure
always_declare_return_types: true
avoid_positional_boolean_parameters: true
cascade_invocations: true
require_trailing_commas: true
unnecessary_lambdas: true
use_super_parameters: true
# Async correctness — every future is awaited or explicitly unawaited()
unawaited_futures: true
# Type safety
avoid_dynamic_calls: true
# Imports
prefer_relative_imports: true