-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
analysis_options.yaml
51 lines (48 loc) · 1.1 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
include: package:flutter_lints/flutter.yaml
linter:
rules:
- prefer_single_quotes
- unnecessary_new
- prefer_contains
- package_names
- non_constant_identifier_names
- library_prefixes
- library_names
- implementation_imports
- file_names
- camel_case_extensions
- camel_case_types
- avoid_empty_else
- avoid_classes_with_only_static_members
- always_declare_return_types
- always_require_non_null_named_parameters
analyzer:
exclude:
- ios/**
- macos/**
plugins:
- dart_code_metrics
dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cyclomatic-complexity: 20
lines-of-executable-code: 50
number-of-arguments: 4
maximum-nesting: 5
metrics-exclude:
- test/**
rules:
- newline-before-return
- no-boolean-literal-compare
- prefer-trailing-comma
- no-equal-then-else
- potential-null-dereference
- member-ordering:
alphabetize: true
order:
- constructors
- public_fields
- public_setters
- private_fields