-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathanalysis_options.yaml
62 lines (57 loc) · 1.64 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
52
53
54
55
56
57
58
59
60
61
62
include: package:surf_lint_rules/analysis_options.yaml
analyzer:
errors:
implicit_dynamic_type: false
implicit_dynamic_parameter: false
implicit_dynamic_map_literal: false
implicit_dynamic_function: false
implicit_dynamic_variable: false
implicit_dynamic_method: false
implicit_dynamic_list_literal: false
implicit_dynamic_invoke: false
avoid_dynamic_calls: false
use_build_context_synchronously: false
avoid_print: false
close_sinks: false
return_of_invalid_type: false
non_bool_condition: false
todo: ignore
exclude:
- "build/**"
- "script/**"
- "**/*.g.dart"
- "**/*.freezed.dart"
- "docs/templates/**"
- "plugins/**/**"
dart_code_metrics:
anti-patterns:
long-method: false
long-parameter-list: false
metrics-exclude:
- test/**
rules:
avoid-unnecessary-setstate: true
no-boolean-literal-compare: true
prefer-intl-name: true
provide-correct-intl-args: true
avoid-wrapping-in-padding: true
double-literal-format: true
binary-expression-operand-order: true
prefer-single-widget-per-file:
ignore-private-widgets: true
no-empty-block: false
always-remove-listener: true
avoid-unused-parameters: true
newline-before-return: false
prefer-trailing-comma: false
prefer-conditional-expressions: false
linter:
rules:
omit_local_variable_types: false
always_use_package_imports: false # do not delete
parameter_assignments: false
unawaited_futures: false
avoid_returning_null: false
avoid_implementing_value_types: false
use_setters_to_change_properties: false
only_throw_errors: false