Skip to content

Commit 18329ba

Browse files
committed
style: misc
1 parent 1a8b855 commit 18329ba

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
include: package:very_good_analysis/analysis_options.7.0.0.yaml
22
analyzer:
33
errors:
4+
cast_nullable_to_non_nullable: ignore
45
document_ignores: ignore
56
lines_longer_than_80_chars: ignore
67
no_runtimetype_tostring: ignore
78
overridden_fields: ignore
89
prefer_initializing_formals: ignore
10+
require_trailing_commas: ignore
911
unnecessary_null_checks: ignore
1012
unused_element: ignore
1113
use_super_parameters: ignore

lib/src/models/auth/permission.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/src/models/entities/headline_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ void main() {
216216
fullHeadline.title,
217217
fullHeadline.description,
218218
fullHeadline.url,
219-
fullHeadline.imageUrl,
220-
fullHeadline.publishedAt,
219+
fullHeadline.imageUrl,
220+
fullHeadline.publishedAt,
221221
fullHeadline.source,
222222
fullHeadline.category,
223223
fullHeadline.type,

test/src/models/feed_decorators/engagement_content_test.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,7 @@ void main() {
263263
);
264264

265265
final copied = original.copyWith(
266-
description: null,
267-
callToActionText: null,
268-
callToActionUrl: null,
266+
269267
);
270268

271269
expect(copied.description, isNull);

test/src/models/feed_extras/engagement_content_template_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ void main() {
8080
final instance = EngagementContentTemplate.fromJson(json);
8181

8282
expect(instance.type, EngagementTemplateType.linkAccount);
83-
expect(instance.title, 'Link Your Account Now'); // Expect the provided title
83+
expect(instance.title,
84+
'Link Your Account Now',); // Expect the provided title
8485
expect(instance.description, isNull);
8586
expect(instance.callToActionText, isNull);
8687
});

test/src/models/user_settings/user_app_settings_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ void main() {
2121
'id': id,
2222
'display_settings': displaySettings ?? defaultDisplaySettings.toJson(),
2323
'language': language ?? defaultLanguage,
24-
'feed_preferences':
25-
feedPreferences ?? defaultFeedPreferences.toJson(),
24+
'feed_preferences': feedPreferences ?? defaultFeedPreferences.toJson(),
2625
};
2726
}
2827

0 commit comments

Comments
 (0)