-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
42 lines (39 loc) · 973 Bytes
/
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
include: package:surf_lint_rules/analysis_options.yaml
analyzer:
exclude:
- 'build/**'
- 'script/**'
- '**/*.g.dart'
- '**/*.freezed.dart'
- 'lib/l10n/**'
- 'plugins/**'
- analysis_options.yaml
dart_code_metrics:
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 5
number-of-parameters: 4
source-lines-of-code: 50
number-of-methods: 10
weight-of-class: 0.33
maintainability-index: 50
anti-patterns:
- long-method
- long-parameter-list
metrics-exclude:
- test/**
rules:
- always-remove-listener
- avoid-unused-parameters
- avoid-unnecessary-setstate
- double-literal-format
- newline-before-return
- no-boolean-literal-compare
- prefer-conditional-expressions
- prefer-intl-name
- provide-correct-intl-args
linter:
rules:
public_member_api_docs: false
always_put_required_named_parameters_first: false
always_use_package_imports: true