Skip to content

Commit 01b799f

Browse files
committed
Renew analysis config
1 parent 9264854 commit 01b799f

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ analyzer:
66

77
linter:
88
rules:
9-
avoid_slow_async_io: false
9+
avoid_slow_async_io: false

example/lib/src/screens/main/secondary_view/contents/region_selection/components/shape_selector/components/animated_visibility_icon_button.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,20 @@ class _AnimatedVisibilityIconButton extends StatelessWidget {
66
this.onPressed,
77
this.tooltip,
88
required this.isVisible,
9-
// This is exactly what we want to do
10-
// ignore: avoid_field_initializers_in_const_classes
119
}) : _mode = 0;
1210

1311
const _AnimatedVisibilityIconButton.filledTonal({
1412
required this.icon,
1513
this.onPressed,
1614
this.tooltip,
1715
required this.isVisible,
18-
// This is exactly what we want to do
19-
// ignore: avoid_field_initializers_in_const_classes
2016
}) : _mode = 1;
2117

2218
const _AnimatedVisibilityIconButton.filled({
2319
required this.icon,
2420
this.onPressed,
2521
this.tooltip,
2622
required this.isVisible,
27-
// This is exactly what we want to do
28-
// ignore: avoid_field_initializers_in_const_classes
2923
}) : _mode = 2;
3024

3125
final Icon icon;

jaffa_lints.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ linter:
102102
- one_member_abstracts
103103
- only_throw_errors
104104
- overridden_fields
105-
- package_api_docs
106105
- package_names
107106
- package_prefixed_library_names
108107
- parameter_assignments
@@ -155,6 +154,7 @@ linter:
155154
- sort_constructors_first
156155
- sort_pub_dependencies
157156
- sort_unnamed_constructors_first
157+
- strict_top_level_inference
158158
- test_types_in_equals
159159
- throw_in_finally
160160
- tighten_type_of_initializing_formals
@@ -163,12 +163,14 @@ linter:
163163
- type_literal_in_constant_pattern
164164
- unawaited_futures
165165
- unintended_html_in_doc_comment
166+
- unnecessary_async
166167
- unnecessary_await_in_return
167168
- unnecessary_brace_in_string_interps
168169
- unnecessary_breaks
169170
- unnecessary_const
170171
- unnecessary_constructor_name
171172
- unnecessary_getters_setters
173+
- unnecessary_ignore
172174
- unnecessary_lambdas
173175
- unnecessary_late
174176
- unnecessary_library_directive
@@ -187,8 +189,10 @@ linter:
187189
- unnecessary_string_interpolations
188190
- unnecessary_this
189191
- unnecessary_to_list_in_spreads
192+
- unnecessary_underscores
190193
- unreachable_from_main
191194
- unrelated_type_equality_checks
195+
- unsafe_variance
192196
- use_build_context_synchronously
193197
- use_colored_box
194198
- use_decorated_box
@@ -200,6 +204,7 @@ linter:
200204
- use_key_in_widget_constructors
201205
- use_late_for_private_fields_and_variables
202206
- use_named_constants
207+
- use_null_aware_elements
203208
- use_raw_strings
204209
- use_rethrow_when_possible
205210
- use_setters_to_change_properties
@@ -210,4 +215,4 @@ linter:
210215
- use_to_and_as_if_applicable
211216
- use_truncating_division
212217
- valid_regexps
213-
- void_checks
218+
- void_checks

lib/src/backend/impls/objectbox/backend/internal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class _ObjectBoxBackendImpl implements FMTCObjectBoxBackendInternal {
461461
@override
462462
Future<Map<String, int>> removeOldestTilesAboveLimit({
463463
required List<String> storeNames,
464-
}) async {
464+
}) {
465465
// By sharing a single completer, all invocations of this method during the
466466
// debounce period will return the same result at the same time
467467
if (_rotalResultCompleter?.isCompleted ?? true) {

lib/src/backend/impls/objectbox/backend/internal_workers/standard/worker.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,9 +1001,6 @@ Future<void> _worker(
10011001
id: cmd.id,
10021002
data: {'numExportedTiles': numExportedTiles},
10031003
);
1004-
1005-
// We don't care what type, we always need to clean up and rethrow
1006-
// ignore: avoid_catches_without_on_clauses
10071004
} catch (e) {
10081005
exportingRoot.close();
10091006
if (workingDir.existsSync()) {

lib/src/root/recovery.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class RootRecovery {
5858
///
5959
/// {@macro fmtc.rootRecovery.failedDefinition}
6060
Future<Iterable<({bool isFailed, RecoveredRegion region})>>
61-
get recoverableRegions async =>
61+
get recoverableRegions =>
6262
FMTCBackendAccess.internal.listRecoverableRegions().then(
6363
(rs) => rs.map(
6464
(r) =>
@@ -79,7 +79,7 @@ class RootRecovery {
7979
}
8080

8181
/// {@macro fmtc.backend.cancelRecovery}
82-
Future<void> cancel(int id) async =>
82+
Future<void> cancel(int id) =>
8383
FMTCBackendAccess.internal.cancelRecovery(id: id);
8484
}
8585

0 commit comments

Comments
 (0)