-
Notifications
You must be signed in to change notification settings - Fork 229
/
analysis_options.yaml
58 lines (57 loc) · 1.81 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
include: package:lints/recommended.yaml
analyzer:
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
linter:
rules:
# TODO: Turn this to true when all public apis are documented
public_member_api_docs: false
prefer_relative_imports: true
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/recommended.yaml
- package:dart_code_metrics_presets/metrics_recommended.yaml
metrics-exclude:
- test/**
rules-exclude:
- test/**
rules:
# avoid-collection-mutating-methods: true
newline-before-return: true
avoid-importing-entrypoint-exports:
only-in-src: true
prefer-match-file-name: false
prefer-correct-callback-field-name: false
match-getter-setter-field-names: false
avoid-duplicate-cascades: false
prefer-dedicated-media-query-methods: false
avoid-shadowing: false
avoid-duplicate-initializers: false
enum-constants-ordering: false
avoid-accessing-collections-by-constant-index: false
avoid-unsafe-collection-methods: false
move-variable-closer-to-its-usage: false
prefer-prefixed-global-constants: false
avoid-nullable-interpolation: false
avoid-returning-widgets: false
arguments-ordering:
child-last: true
avoid-nested-conditional-expressions:
acceptable-level: 3
member-ordering:
order:
- public-fields
- private-fields
- constructors
- static-methods
- private-methods
- private-getters
- private-setters
- public-getters
- public-setters
- public-methods
- overridden-public-methods
- overridden-public-getters
- build-method
prefer-named-boolean-parameters:
ignore-single: true