Skip to content

Commit 1b8a8d5

Browse files
committed
Lint/analysis/formatting changes
1 parent 6346b41 commit 1b8a8d5

File tree

4 files changed

+858
-639
lines changed

4 files changed

+858
-639
lines changed

analysis_options.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ include: jaffa_lints.yaml
33
analyzer:
44
exclude:
55
- lib/**.g.dart
6+
# language:
7+
# strict-inference: true
8+
# strict-raw-types: true
69

710
linter:
811
rules:
9-
avoid_slow_async_io: false
12+
avoid_slow_async_io: false

jaffa_lints.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
linter:
22
rules:
33
- always_declare_return_types
4+
# - always_put_control_body_on_new_line
5+
# - always_put_required_named_parameters_first
6+
# - always_specify_types
7+
# - always_use_package_imports
48
- annotate_overrides
59
- annotate_redeclares
610
- avoid_annotating_with_dynamic
711
- avoid_bool_literals_in_conditional_expressions
812
- avoid_catches_without_on_clauses
913
- avoid_catching_errors
14+
# - avoid_classes_with_only_static_members
1015
- avoid_double_and_int_checks
1116
- avoid_dynamic_calls
1217
- avoid_empty_else
@@ -59,7 +64,9 @@ linter:
5964
- depend_on_referenced_packages
6065
- deprecated_consistency
6166
- deprecated_member_use_from_same_package
67+
# - diagnostic_describe_all_properties
6268
- directives_ordering
69+
# - discarded_futures
6370
- do_not_use_environment
6471
- document_ignores
6572
- empty_catches
@@ -68,6 +75,7 @@ linter:
6875
- eol_at_end_of_file
6976
- exhaustive_cases
7077
- file_names
78+
# - flutter_style_todos
7179
- hash_and_equals
7280
- implementation_imports
7381
- implicit_call_tearoffs
@@ -99,10 +107,12 @@ linter:
99107
- noop_primitive_operations
100108
- null_check_on_nullable_type_parameter
101109
- null_closures
110+
# - omit_local_variable_types
111+
# - omit_obvious_local_variable_types
112+
# - omit_obvious_property_types
102113
- one_member_abstracts
103114
- only_throw_errors
104115
- overridden_fields
105-
- package_api_docs
106116
- package_names
107117
- package_prefixed_library_names
108118
- parameter_assignments
@@ -117,10 +127,12 @@ linter:
117127
- prefer_const_literals_to_create_immutables
118128
- prefer_constructors_over_static_methods
119129
- prefer_contains
130+
# - prefer_double_quotes
120131
- prefer_expression_function_bodies
121132
- prefer_final_fields
122133
- prefer_final_in_for_each
123134
- prefer_final_locals
135+
# - prefer_final_parameters
124136
- prefer_for_elements_to_map_fromIterable
125137
- prefer_foreach
126138
- prefer_function_declarations_over_variables
@@ -146,6 +158,7 @@ linter:
146158
- provide_deprecation_message
147159
- public_member_api_docs
148160
- recursive_getters
161+
- remove_deprecations_in_breaking_versions
149162
- require_trailing_commas
150163
- secure_pubspec_urls
151164
- sized_box_for_whitespace
@@ -155,6 +168,10 @@ linter:
155168
- sort_constructors_first
156169
- sort_pub_dependencies
157170
- sort_unnamed_constructors_first
171+
# - specify_nonobvious_local_variable_types
172+
# - specify_nonobvious_property_types
173+
- strict_top_level_inference
174+
- switch_on_type
158175
- test_types_in_equals
159176
- throw_in_finally
160177
- tighten_type_of_initializing_formals
@@ -163,12 +180,15 @@ linter:
163180
- type_literal_in_constant_pattern
164181
- unawaited_futures
165182
- unintended_html_in_doc_comment
183+
- unnecessary_async
166184
- unnecessary_await_in_return
167185
- unnecessary_brace_in_string_interps
168186
- unnecessary_breaks
169187
- unnecessary_const
170188
- unnecessary_constructor_name
189+
# - unnecessary_final
171190
- unnecessary_getters_setters
191+
- unnecessary_ignore
172192
- unnecessary_lambdas
173193
- unnecessary_late
174194
- unnecessary_library_directive
@@ -187,8 +207,11 @@ linter:
187207
- unnecessary_string_interpolations
188208
- unnecessary_this
189209
- unnecessary_to_list_in_spreads
210+
- unnecessary_unawaited
211+
- unnecessary_underscores
190212
- unreachable_from_main
191213
- unrelated_type_equality_checks
214+
- unsafe_variance
192215
- use_build_context_synchronously
193216
- use_colored_box
194217
- use_decorated_box
@@ -200,6 +223,7 @@ linter:
200223
- use_key_in_widget_constructors
201224
- use_late_for_private_fields_and_variables
202225
- use_named_constants
226+
- use_null_aware_elements
203227
- use_raw_strings
204228
- use_rethrow_when_possible
205229
- use_setters_to_change_properties
@@ -210,4 +234,4 @@ linter:
210234
- use_to_and_as_if_applicable
211235
- use_truncating_division
212236
- valid_regexps
213-
- void_checks
237+
- void_checks

lib/src/backend/impls/objectbox/models/generated/objectbox-model.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
{
1818
"id": "2:2496811483091029921",
1919
"name": "refId",
20+
"indexId": "1:1036386105099927432",
2021
"type": 6,
21-
"flags": 40,
22-
"indexId": "1:1036386105099927432"
22+
"flags": 40
2323
},
2424
{
2525
"id": "3:3612512640999075849",
@@ -54,9 +54,9 @@
5454
{
5555
"id": "22:2247444187089993412",
5656
"name": "regionId",
57+
"indexId": "5:2172676985778936605",
5758
"type": 11,
5859
"flags": 520,
59-
"indexId": "5:2172676985778936605",
6060
"relationTarget": "ObjectBoxRecoveryRegion"
6161
}
6262
],
@@ -76,9 +76,9 @@
7676
{
7777
"id": "2:1060752758288526798",
7878
"name": "name",
79+
"indexId": "2:5602852847672696920",
7980
"type": 9,
80-
"flags": 2080,
81-
"indexId": "2:5602852847672696920"
81+
"flags": 2080
8282
},
8383
{
8484
"id": "3:7375048950056890678",
@@ -127,9 +127,9 @@
127127
{
128128
"id": "2:4115905667778721807",
129129
"name": "url",
130+
"indexId": "3:4361441212367179043",
130131
"type": 9,
131-
"flags": 34848,
132-
"indexId": "3:4361441212367179043"
132+
"flags": 34848
133133
},
134134
{
135135
"id": "3:7508139234299399524",
@@ -139,9 +139,9 @@
139139
{
140140
"id": "4:1172878417733380836",
141141
"name": "lastModified",
142+
"indexId": "4:4857742396480146668",
142143
"type": 10,
143-
"flags": 8,
144-
"indexId": "4:4857742396480146668"
144+
"flags": 8
145145
}
146146
],
147147
"relations": [

0 commit comments

Comments
 (0)