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

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 run.

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 - test/components/media_picker_test.dart:10:3 - All final variables must be initialized, but '_defaultResponse', '_givenHashCode', and 1 others aren't. Try adding initializers for the fields. - final_not_initialized_constructor error - test/components/media_picker_test.dart:10:3 - Non-nullable instance field 'implements' must be initialized. Try adding an initializer expression, or add a field initializer in this constructor, or mark it 'late'. - not_initialized_non_nullable_instance_field error - test/components/media_picker_test.dart:16:1 - Classes can't be declared inside other classes. Try moving the class to the top-level. - class_in_class error - test/components/media_picker_test.dart:16:18 - Expected a class member. Try placing this code inside a class member. - expected_class_member error - test/components/media_picker_test.dart:16:31 - Expected to find ';'. - expected_token error - test/components/media_picker_test.dart:16:42 - Methods must have an explicit list of parameters. Try adding a parameter list. - missing_method_parameters error - test/components/media_picker_test.dart:21:21 - The name 'CameraDescription' isn't a type, so it can't be used as a type argument. Try correcting the name to an existing type, or defining a type named 'CameraDescription'. - non_type_as_type_argument error - test/components/media_picker_test.dart:24:25 - The class 'MockImagePicker' doesn't have an unnamed constructor. Try using one of the named constructors defined in 'MockImagePicker'. - new_with_undefined_constructor_default error - test/components/media_picker_test.dart:25:22 - The method 'MockCamera' isn't defined for the type 'MockImagePicker'. Try correcting the name to the name of an existing method, or defining a method named 'MockCamera'. - undefined_method error - test/components/media_picker_test.dart:203:1 - Expected to find '}'. - expected_token error - test/components/navigation_drawer_test.dart:51:11 - The argument type 'Null' can't be assigned to the parameter type 'Route'. - argument_type_not_assignable warning - test/components/media_picker_test.dart:11:17 - The value of the field '_givenName' isn't used. Try removing the field, or using it. - unused_field warning - test/components/media_picker_test.dart:12:17 - The value of the field '_givenHashCode' isn't used. Try removing the field, or using it. - unused_field warning - test/components/media_picker_test.dart:13:17 - The value of the field '_defaultResponse' isn't used. Try removing the field, or using it. - unused_field 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/media_picker_test.dart:16:42 - The variable name 'CameraDescription' isn't a lowerCamelCase identifier. Try changing the name to follow the lowerCamelCase style. - non_constant_identifier_names 16 issues found. ```

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