yihong1120 / traffic_report_front_flutter

A platform, 'Traffic-Violation-Report-System', enabling users in Taiwan to upload and share responses from law enforcement to traffic violations. This system aims for greater transparency in traffic law enforcement. It utilises Django for backend and Flutter for a separated frontend web development.
GNU Affero General Public License v3.0
0 stars 0 forks source link

[Sweep GHA Fix] Fix failing GitHub Actions #104

Closed sweep-ai[bot] closed 6 months ago

sweep-ai[bot] commented 6 months ago

PR Feedback (click)

Summary of Changes

Please review and merge this PR to fix the failing GitHub Actions run.

sweep-ai[bot] commented 6 months ago

Rollback Files For Sweep

codeautopilot[bot] commented 6 months ago

Your organization has reached the subscribed usage limit. You can upgrade your plan at https://www.codeautopilot.com/#pricing

sweep-ai[bot] commented 6 months ago
Sweeping Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs: ``` The command: Run dart analyze yielded the following error: ##[error]Process completed with exit code 3. Here are the logs: Analyzing traffic_report_front_flutter... error - lib/components/media_picker.dart:39:10 - '_MediaPickerMenu.build' ('Widget Function(String, BuildContext)') isn't a valid override of 'StatelessWidget.build' ('Widget Function(BuildContext)'). - invalid_override - The member being overridden at lib/components/media_picker.dart:99:20204. error - lib/screens/reports/create_report_screen.dart:136:66 - The argument type 'BuildContext' can't be assigned to the parameter type 'String'. - argument_type_not_assignable error - lib/screens/reports/create_report_screen.dart:136:73 - 2 positional arguments expected by 'pickMedia', but 1 found. Try adding the missing arguments. - not_enough_positional_arguments error - test/components/navigation_drawer_test.dart:60:5 - Expected to find ';'. - expected_token error - test/components/navigation_drawer_test.dart:60:6 - Expected an identifier. - missing_identifier error - test/components/navigation_drawer_test.dart:60:6 - Unexpected text ';'. Try removing the text. - unexpected_token warning - lib/screens/map/home_map.dart:69:20 - The value of the local variable 'licensePlate' isn't used. Try removing the variable or using it. - unused_local_variable warning - lib/screens/map/home_map.dart:71:20 - The value of the local variable 'violation' isn't used. Try removing the variable or using it. - unused_local_variable warning - lib/screens/map/home_map.dart:72:20 - The value of the local variable 'date' isn't used. Try removing the variable or using it. - unused_local_variable warning - test/components/navigation_drawer_test.dart:51:11 - This cast always throws an exception because the expression always evaluates to 'null'. - cast_from_null_always_fails info - lib/components/media_picker.dart:16:18 - Don't use 'BuildContext's across async gaps. Try rewriting the code to not reference the 'BuildContext'. - use_build_context_synchronously info - test/components/navigation_drawer_test.dart:27:5 - The declaration 'testWidgets' isn't referenced. Try removing the declaration of 'testWidgets'. - unused_element info - test/components/navigation_drawer_test.dart:60:7 - Unnecessary empty statement. Try removing the empty statement or restructuring the code. - empty_statements 13 issues found. ```

Created Pull Request: https://github.com/yihong1120/traffic_report_front_flutter/pull/105