/
analysis_options.yaml
66 lines (62 loc) · 1.74 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
59
60
61
62
63
64
65
66
include: package:flutter_lints/flutter.yaml
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/all.yaml
- package:dart_code_metrics_presets/pub.yaml
rules:
# style
arguments-ordering: false
avoid-inferrable-type-arguments: false
avoid-similar-names:
exclude:
- test/**
enum-constants-ordering: false
format-comment:
only-doc-comments: true
member-ordering: false
newline-before-return: false
parameters-ordering: false
prefer-correct-callback-field-name: false
prefer-correct-identifier-length:
exceptions: ['i', 'x', 'y']
min-identifier-length: 3
max-identifier-length: 40
prefer-returning-conditional-expressions: false
unnecessary-trailing-comma: false
# style (flutter)
prefer-single-widget-per-file:
ignore-private-widgets: true
prefer-widget-private-members: false
# warning
avoid-collection-mutating-methods: false
avoid-duplicate-collection-elements: false
avoid-late-keyword: false
avoid-long-files:
exclude:
- test/**
avoid-long-functions:
exclude:
- test/**
ignored-names:
- toImage
avoid-non-null-assertion: false
avoid-passing-default-values: false
avoid-self-compare:
exclude:
- test/**
avoid-shadowing:
ignore-parameters: true
no-equal-arguments: false
no-magic-number: false
prefer-addition-subtraction-assignments: false
prefer-match-file-name: false
prefer-moving-to-variable:
exclude:
- test/**
prefer-overriding-parent-equality:
exclude:
- test/**
# warning (pubspec)
pubspec-rules:
prefer-caret-version-syntax: false
prefer-publish-to-none: false