-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_options.yaml
More file actions
102 lines (87 loc) · 3.08 KB
/
Copy pathanalysis_options.yaml
File metadata and controls
102 lines (87 loc) · 3.08 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
include: package:flutter_lints/flutter.yaml
analyzer:
language:
strict-inference: true
strict-raw-types: true
# strict-casts: true ## would like this one to be active as a warning/hint, but don't know how :(
errors:
body_might_complete_normally_nullable: ignore
invalid_use_of_visible_for_testing_member: ignore
avoid_renaming_method_parameters: ignore
prefer_function_declarations_over_variables: ignore
unrelated_type_equality_checks : error
always_use_package_imports : error
no_self_assignments : error
no_wildcard_variable_uses : error
always_declare_return_types : error
avoid_void_async : error
avoid_field_initializers_in_const_classes: error
avoid_dynamic_calls : warning
require_trailing_commas : warning
avoid_type_to_string : warning
literal_only_boolean_expressions: warning
no_adjacent_strings_in_list : warning
test_types_in_equals : warning
unnecessary_statements : warning
avoid_returning_null_for_void : warning
cast_nullable_to_non_nullable : warning
directives_ordering : warning
matching_super_parameters : warning
noop_primitive_operations : warning
prefer_final_in_for_each : warning
unnecessary_breaks : warning
unnecessary_null_checks : warning
unnecessary_to_list_in_spreads : warning
use_named_constants : warning
use_string_buffers : warning
use_colored_box : warning
use_decorated_box : warning
unnecessary_null_aware_operator_on_extension_on_nullable: warning
dead_code: info
unnecessary_await_in_return : info
unnecessary_lambdas : info
use_raw_strings : info
use_super_parameters : info
always_put_required_named_parameters_first: info
avoid_positional_boolean_parameters: info
linter:
rules:
- always_use_package_imports
- no_self_assignments
- no_wildcard_variable_uses
- always_declare_return_types
- avoid_void_async
- avoid_field_initializers_in_const_classes
- avoid_dynamic_calls
- require_trailing_commas
- avoid_type_to_string
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- test_types_in_equals
- unnecessary_statements
- avoid_returning_null_for_void
- cast_nullable_to_non_nullable
- directives_ordering
- matching_super_parameters
- noop_primitive_operations
- prefer_final_in_for_each
- unnecessary_breaks
- unnecessary_null_checks
- unnecessary_to_list_in_spreads
- use_named_constants
- use_string_buffers
- use_colored_box
- use_decorated_box
- unnecessary_null_aware_operator_on_extension_on_nullable
- unnecessary_await_in_return
- unnecessary_lambdas
- use_raw_strings
- use_super_parameters
- always_put_required_named_parameters_first
- avoid_positional_boolean_parameters
- use_if_null_to_convert_nulls_to_bools
formatter:
page_width: 120
trailing_commas: preserve
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options