-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
63 lines (61 loc) · 1.97 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
63
include: package:lints/recommended.yaml
analyzer:
errors:
# treat missing required parameters as an error (not a hint)
missing_required_param: error
# treat missing returns as an error (not a hint)
missing_return: error
invalid_annotation_target: ignore
exclude:
- lib/**/*.g.dart
- lib/*.g.dart
- lib/**/*.freezed.dart
- test/**/*.mocks.dart
- bricks/**
language:
strict-casts: true
# strict-raw-types: true # I want this one enabled, and we should work toward that. @hans
linter:
rules:
avoid_dynamic_calls: true
prefer_const_constructors: true
prefer_const_declarations: true
use_key_in_widget_constructors: true
sort_child_properties_last: true
prefer_final_in_for_each: true
prefer_final_locals: true
avoid_void_async: true
unnecessary_parenthesis: true
always_declare_return_types: true
unawaited_futures: true
only_throw_errors: true
missing_whitespace_between_adjacent_strings: true
sized_box_for_whitespace: true
prefer_const_literals_to_create_immutables: true
prefer_const_constructors_in_immutables: true
no_logic_in_create_state: true
avoid_unnecessary_containers: true
avoid_print: true
avoid_relative_lib_imports: true
empty_statements: true
no_adjacent_strings_in_list: true
no_duplicate_case_values: true
valid_regexps: true
require_trailing_commas: true
unnecessary_statements: true
use_build_context_synchronously: true
annotate_overrides: true
avoid_function_literals_in_foreach_calls: true
avoid_null_checks_in_equality_operators: true
avoid_unused_constructor_parameters: true
camel_case_extensions: true
camel_case_types: true
directives_ordering: true
empty_constructor_bodies: true
file_names: true
prefer_final_fields: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_iterable_whereType: true
sort_pub_dependencies: true