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 #96

Closed sweep-ai[bot] closed 10 months ago

sweep-ai[bot] commented 10 months ago

PR Feedback (click)

Summary of Changes

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

sweep-ai[bot] commented 10 months ago

Rollback Files For Sweep

codeautopilot[bot] commented 10 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 10 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:49:24 - The argument type 'NavigatorState?' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - lib/components/media_picker.dart:55:24 - The argument type 'NavigatorState?' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - lib/components/media_picker.dart:61:24 - The argument type 'NavigatorState?' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - lib/components/media_picker.dart:67:24 - The argument type 'NavigatorState?' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - lib/main.dart:34:23 - The name 'NavigationDrawer' isn't a class. Try correcting the name to match an existing class. - creation_with_non_type error - test/services/report_service_test.dart:25:26 - The argument type 'TypeMatcher' can't be assigned to the parameter type 'BaseRequest'. - argument_type_not_assignable error - test/services/report_service_test.dart:49:25 - The argument type 'TypeMatcher' can't be assigned to the parameter type 'Uri'. - argument_type_not_assignable error - test/services/report_service_test.dart:75:25 - The argument type 'TypeMatcher' can't be assigned to the parameter type 'Uri'. - argument_type_not_assignable error - test/services/report_service_test.dart:97:26 - The argument type 'TypeMatcher' can't be assigned to the parameter type 'BaseRequest'. - argument_type_not_assignable error - test/services/social_service_test.dart:26:23 - The argument type 'TypeMatcher' can't be assigned to the parameter type 'Uri'. - argument_type_not_assignable error - test/services/social_service_test.dart:44:23 - The argument type 'TypeMatcher' can't be assigned to the parameter type 'Uri'. - argument_type_not_assignable error - test/services/social_service_test.dart:57:24 - The argument type 'TypeMatcher Function()' can't be assigned to the parameter type 'Uri'. - argument_type_not_assignable error - test/services/social_service_test.dart:57:28 - Expected to find ','. - expected_token error - test/services/social_service_test.dart:57:28 - Too many positional arguments: 1 expected, but 2 found. Try removing the extra positional arguments, or specifying the name for named arguments. - extra_positional_arguments_could_be_named error - test/services/social_service_test.dart:70:12 - The function 'canLaunchUrlisA' isn't defined. Try importing the library that defines 'canLaunchUrlisA', correcting the name to the name of an existing function, or defining a function named 'canLaunchUrlisA'. - undefined_function error - test/services/social_service_test.dart:70:34 - Expected to find ';'. - expected_token error - test/services/social_service_test.dart:70:35 - Expected an identifier. - missing_identifier error - test/services/social_service_test.dart:70:35 - Unexpected text ';'. Try removing the text. - unexpected_token error - test/services/social_service_test.dart:70:36 - Expected an identifier. - missing_identifier warning - lib/main.dart:8:8 - Unused import: 'components/navigation_drawer.dart'. Try removing the import directive. - unused_import warning - test/services/social_service_test.dart:6:8 - Unused import: 'package:url_launcher/url_launcher.dart'. Try removing the import directive. - unused_import 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 - lib/components/media_picker.dart:41:27 - Type could be non-nullable. Try changing the type to be non-nullable. - unnecessary_nullable_for_final_variable_declarations info - lib/screens/map/home_map.dart:114:15 - Don't invoke 'print' in production code. Try using a logging framework. - avoid_print 24 issues found. ```

Making changes according to plan... (step 3/3)