-
Notifications
You must be signed in to change notification settings - Fork 38
/
lints_with_dcm.yaml
54 lines (53 loc) · 1.5 KB
/
lints_with_dcm.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
include: lints.yaml
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
avoid-suspicious-super-overrides: false
prefer-overriding-parent-equality: false
prefer-correct-callback-field-name: false
prefer-single-widget-per-file: false
match-getter-setter-field-names: false
prefer-dedicated-media-query-methods: false
avoid-shadowing: false
enum-constants-ordering: false
avoid-unsafe-collection-methods: false
prefer-prefixed-global-constants: false
avoid-returning-widgets: false
avoid-unnecessary-overrides: false
arguments-ordering:
first:
- key
- spec
last:
- child
- children
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