forked from macosui/macos_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
45 lines (42 loc) · 1.04 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
include: package:flutter_lints/flutter.yaml
linter:
rules:
- use_super_parameters
analyzer:
exclude:
- test/mock_canvas.dart
- test/recording_canvas.dart
dart_code_metrics:
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 5
metrics-exclude:
- test/**
- example/test/**
rules:
- prefer-trailing-comma
- double-literal-format
- prefer-first
- prefer-last
- prefer-immediate-return
- avoid-global-state
- always-remove-listener
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius
- prefer-correct-edge-insets-constructor
- use-setstate-synchronously
- member-ordering:
alphabetize: false
order:
- constructors
- public_fields
- private-fields
widgets-order:
- const fields
- init-state-method
- did-change-dependencies-method
- did-update-widget-method
- private-methods
- dispose-method
- build-method