-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
44 lines (37 loc) · 1.06 KB
/
analysis_options.yaml
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
include: package:very_good_analysis/analysis_options.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
exclude:
- "**/*.g.dart"
- "**/l10n/*.dart"
linter:
rules:
# Constructors
sort_unnamed_constructors_first: true
sort_constructors_first: true
prefer_const_constructors: true
use_key_in_widget_constructors: true
always_put_required_named_parameters_first: false
# Imports
prefer_relative_imports: true
directives_ordering: true
combinators_ordering: true
depend_on_referenced_packages: true
avoid_web_libraries_in_flutter: true
always_use_package_imports: false
# Dependencies
sort_pub_dependencies: true
# Style
prefer_single_quotes: true
require_trailing_commas: true
noop_primitive_operations: true
use_super_parameters: true
avoid_redundant_argument_values: true
public_member_api_docs: false
flutter_style_todos: false
# Types
unrelated_type_equality_checks: true
avoid_types_on_closure_parameters: true