-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
43 lines (40 loc) · 1.02 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
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
# strong-mode:
# implicit-casts: false
errors:
missing_required_param: error
# missing_return: error
# must_be_imutable: error
# sort_unnamed_constructors_first: ignore
plugins:
- dart_code_metrics
dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 10
number-of-parameters: 4
source-lines-of-code: 50
technical-debt:
threshold: 1
todo-cost: 4
ignore-cost: 8
ignore-for-file-cost: 16
as-dynamic-cost: 16
depricated-annotations: 2
file-nullsafety-migration: 2
unit-type: "hour"
metrics-exclude:
- test/**
rules:
# - newline-before-return
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
# - prefer-conditional-expressions
- no-equal-then-else