-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathanalysis_options.yaml
53 lines (49 loc) · 1.41 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
include: package:flutter_lints/flutter.yaml
analyzer:
plugins:
#- dart_code_metrics
exclude:
- "**/**.g.dart"
- "lib/**.g.dart"
- "**/**.freezed.dart"
- "lib/**.freezed.dart"
- "lib/i18n/*"
- "build/**"
- "lib/generated/**"
language:
#strict-casts: true
#strict-inference: true
#strict-raw-types: true
errors:
todo: ignore
always_use_package_imports: error
avoid_print: warning
annotate_overrides: warning
avoid_renaming_method_parameters: warning
avoid_return_types_on_setters: warning
avoid_returning_null_for_void: error
avoid_unnecessary_containers: warning
camel_case_types: error
flutter_style_todos: warning
invalid_annotation_target: ignore
always_declare_return_types: warning
unused_import: error
require_trailing_commas: info
sort_child_properties_last: warning
no_leading_underscores_for_local_identifiers: info
linter:
rules:
always_use_package_imports: true
avoid_print: true
annotate_overrides: true
avoid_renaming_method_parameters: true
avoid_return_types_on_setters: true
avoid_returning_null_for_void: true
avoid_unnecessary_containers: true
camel_case_types: true
flutter_style_todos: true
always_declare_return_types: true
require_trailing_commas: true
sort_child_properties_last: true
library_private_types_in_public_api: false
no_leading_underscores_for_local_identifiers: false