Skip to content

fix flutter tests

fix flutter tests #64

Triggered via push July 27, 2024 11:30
Status Failure
Total duration 1m 39s
Artifacts

CI.yml

on: push
🛠️ Validate format
27s
🛠️ Validate format
🔍 Analyze code
47s
🔍 Analyze code
🧪 Run test
1m 31s
🧪 Run test
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 1 warning, and 10 notices
🛠️ Validate format
Process completed with exit code 1.
The named parameter 'backgroundColor' isn't defined.: apps/rewordle/lib/main.dart#L46
Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'backgroundColor'. See https://dart.dev/diagnostics/undefined_named_parameter to learn more about this problem.
🔍 Analyze code
Dart Analyzer detected problems, see the logs for more information.
🧪 Run test
3 tests passed, 2 failed.
🧪 Run test
Process completed with exit code 1.
The value of the local variable 'correct' isn't used.: apps/rewordle/lib/persistence.dart#L43
Try removing the variable or using it. See https://dart.dev/diagnostics/unused_local_variable to learn more about this problem.
The line length exceeds the 80-character limit.: apps/file_manager/test/widget_test.dart#L4
Try breaking the line across multiple lines. See https://dart.dev/lints/lines_longer_than_80_chars to learn more about this problem.
Use 'const' for final variables initialized to a constant value.: apps/rewordle/lib/main.dart#L9
Try replacing 'final' with 'const'. See https://dart.dev/diagnostics/prefer_const_declarations to learn more about this problem.
Use 'const' for final variables initialized to a constant value.: apps/rewordle/lib/main.dart#L10
Try replacing 'final' with 'const'. See https://dart.dev/diagnostics/prefer_const_declarations to learn more about this problem.
Use 'const' for final variables initialized to a constant value.: apps/rewordle/lib/main.dart#L11
Try replacing 'final' with 'const'. See https://dart.dev/diagnostics/prefer_const_declarations to learn more about this problem.
Use 'const' with the constructor to improve performance.: apps/rewordle/lib/main.dart#L12
Try adding the 'const' keyword to the constructor invocation. See https://dart.dev/diagnostics/prefer_const_constructors to learn more about this problem.
Use 'const' with the constructor to improve performance.: apps/rewordle/lib/main.dart#L13
Try adding the 'const' keyword to the constructor invocation. See https://dart.dev/diagnostics/prefer_const_constructors to learn more about this problem.
Use 'const' with the constructor to improve performance.: apps/rewordle/lib/main.dart#L14
Try adding the 'const' keyword to the constructor invocation. See https://dart.dev/diagnostics/prefer_const_constructors to learn more about this problem.
Constructors for public widgets should have a named 'key' parameter.: apps/rewordle/lib/main.dart#L17
Try adding a named parameter to the constructor. See https://dart.dev/diagnostics/use_key_in_widget_constructors to learn more about this problem.
Use 'const' with the constructor to improve performance.: apps/rewordle/lib/main.dart#L61
Try adding the 'const' keyword to the constructor invocation. See https://dart.dev/diagnostics/prefer_const_constructors to learn more about this problem.
Statements in an if should be enclosed in a block.: apps/rewordle/lib/main.dart#L119
Try wrapping the statement in a block. See https://dart.dev/diagnostics/curly_braces_in_flow_control_structures to learn more about this problem.