Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

fix(ui): make UserDisplayNameWidget flexible #402

fix(ui): make UserDisplayNameWidget flexible

fix(ui): make UserDisplayNameWidget flexible #402

Triggered via push December 28, 2023 23:12
Status Failure
Total duration 1m 46s
Artifacts

ci.yml

on: push
Build for Linux
0s
Build for Linux
Build for Android
0s
Build for Android
Build for Windows
0s
Build for Windows
Build for Web
0s
Build for Web
Package (AppImage)
0s
Package (AppImage)
Package (Flatpak)
0s
Package (Flatpak)
Fit to window
Zoom out
Zoom in

Annotations

1 error, 1 warning, and 10 notices
Test
Dart Analyzer detected problems, see the logs for more information.
The value of the local variable 'textSpacing' isn't used.: src/kaiteki/lib/ui/shared/users/user_display_name_widget.dart#L27
Try removing the variable or using it. See https://dart.dev/diagnostics/unused_local_variable to learn more about this problem.
Unnecessary use of single quotes.: src/kaiteki/lib/app.dart#L71
Try using double quotes unless the string contains double quotes. See https://dart.dev/lints/prefer_double_quotes to learn more about this problem.
The declaration '_accountManagerSubscription' isn't referenced.: src/kaiteki/lib/main.dart#L21
Try removing the declaration of '_accountManagerSubscription'. See https://dart.dev/diagnostics/unused_element to learn more about this problem.
Use the constant 'TextElementStyle.kMonospace' rather than a constructor returning the same object.: src/kaiteki/lib/text/parsers/mfm_text_parser.dart#L70
Try using 'TextElementStyle.kMonospace'. See https://dart.dev/lints/use_named_constants to learn more about this problem.
Missing a required trailing comma.: src/kaiteki/lib/text/parsers/social_text_parser.dart#L27
See https://dart.dev/lints/require_trailing_commas to learn more about this problem.
Sort directive sections alphabetically.: src/kaiteki/lib/text/text_renderer.dart#L10
Try sorting the directives. See https://dart.dev/lints/directives_ordering to learn more about this problem.
Missing a required trailing comma.: src/kaiteki/lib/text/text_renderer.dart#L186
See https://dart.dev/lints/require_trailing_commas to learn more about this problem.
Use 'const' with the constructor to improve performance.: src/kaiteki/lib/ui/account/settings_screen.dart#L120
Try adding the 'const' keyword to the constructor invocation. See https://dart.dev/lints/prefer_const_constructors to learn more about this problem.
Use 'const' with the constructor to improve performance.: src/kaiteki/lib/ui/account/settings_screen.dart#L124
Try adding the 'const' keyword to the constructor invocation. See https://dart.dev/lints/prefer_const_constructors to learn more about this problem.
Don't use 'BuildContext's across async gaps, guarded by an unrelated 'mounted' check.: src/kaiteki/lib/ui/auth/login/dialogs/api_type_dialog.dart#L40
Guard a 'State.context' use with a 'mounted' check on the State, and other BuildContext use with a 'mounted' check on the BuildContext. See https://dart.dev/lints/use_build_context_synchronously to learn more about this problem.