-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
88 lines (84 loc) · 2.09 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#include: package:lints/recommended.yaml
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- packages
plugins:
- dart_code_metrics
linter:
rules:
- cancel_subscriptions
- close_sinks
- curly_braces_in_flow_control_structures
dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cycloramic-complexity: 5
maximum-nesting-level: 5
number-of-parameters: 7
source-lines-of-code: 250
number-of-methods: 10
weight-of-class: 0.33
technical-debt:
threshold: 1
todo-cost: 161
ignore-cost: 320
ignore-for-file-cost: 396
as-dynamic-cost: 322
deprecated-annotations-cost: 37
file-nullsafety-migration-cost: 41
unit-type: "₽"
metrics-exclude:
- test/**
rules:
- avoid-ignoring-return-values:
exclude:
- test/**
# - avoid-late-keyword
- avoid-non-null-assertion
- avoid-unused-parameters
- binary-expression-operand-order
- double-literal-format
- member-ordering:
exclude:
- test/**
- member-ordering-extended:
exclude:
- test/**
# - newline-before-return
- no-boolean-literal-compare
- no-empty-block
- no-equal-then-else
- no-magic-number:
exclude:
- test/**
- lib/ui/**
- lib/screen/**
- lib/theme/**
- no-object-declaration
- prefer-conditional-expressions
- prefer-trailing-comma:
exclude:
- test/**
- check-unused-l10n command
# - prefer-immediate-return
# - prefer-moving-to-variable
- avoid-global-state
- prefer-correct-type-name
- prefer-match-file-name
# Flutter specific
- always-remove-listener
- avoid-returning-widgets
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-extracting-callbacks
- prefer-intl-name
- provide-correct-intl-args
- prefer-match-file-name:
exclude:
- test/**
- prefer-single-widget-per-file:
ignore-private-widgets: true
- prefer-const-border-radius