-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
74 lines (68 loc) · 1.98 KB
/
analysis_options.yaml
File metadata and controls
74 lines (68 loc) · 1.98 KB
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
# This file allows you to configure the Dart analyzer.
#
# The commented part below is just for inspiration. Read the guide here:
# https://www.dartlang.org/guides/language/analysis-options
include: package:lints/recommended.yaml
analyzer:
exclude:
- test/issues/**
linter:
rules:
- overridden_fields: false
- always_declare_return_types
- prefer_single_quotes
- unawaited_futures
dart_code_metrics:
exclude:
metrics:
- test/**
- example/**
rules:
- test/**
- example/**
rules:
- newline-before-return : false
- avoid-late-keyword : false
- avoid-global-state : false
- avoid-non-null-assertion : false
- no-magic-number : false
- avoid-substring : false
- avoid-dynamic : false
- avoid-cascade-after-if-null
- avoid-casting-to-extension-type
- avoid-collection-methods-with-unrelated-types
- avoid-conditions-with-boolean-literals
- avoid-double-slash-imports
- avoid-duplicate-exports
- avoid-duplicate-mixins
- avoid-duplicate-named-imports
- avoid-empty-spread
- avoid-generics-shadowing
- avoid-misused-set-literals
- avoid-passing-async-when-sync-expected : false
- avoid-passing-self-as-argument
- avoid-redundant-async
- avoid-self-assignment
- avoid-self-compare
- avoid-throw-in-catch-block
- avoid-top-level-members-in-tests
- avoid-unnecessary-conditionals
- avoid-unnecessary-type-assertions
- avoid-unnecessary-type-casts
- avoid-unrelated-type-assertions
- avoid-unused-parameters
- binary-expression-operand-order
- double-literal-format
- member-ordering
- missing-test-assertion
- no-equal-then-else
- prefer-commenting-analyzer-ignores
- prefer-conditional-expressions
- prefer-first
- prefer-immediate-return
- prefer-iterable-of
- prefer-last
- prefer-match-file-name : false
- prefer-moving-to-variable : false
- prefer-static-class
- avoid-commented-out-code