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

Closed sweep-ai[bot] closed 10 months ago

sweep-ai[bot] commented 10 months ago

PR Feedback (click)

Summary of Changes

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:17:22 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/screens/reports/create_report_screen.dart:136:66 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/media_picker_test.dart:35:35 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/media_picker_test.dart:65:35 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/media_picker_test.dart:91:45 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/media_picker_test.dart:117:45 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/media_picker_test.dart:151:45 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/media_picker_test.dart:181:45 - The argument type 'BuildContext' can't be assigned to the parameter type 'NavigatorState'. - argument_type_not_assignable error - test/components/navigation_drawer_test.dart:52:15 - An expression whose value is always 'null' can't be dereferenced. Try changing the type of the expression. - invalid_use_of_null_value error - test/components/navigation_drawer_test.dart:52:16 - Expected an identifier. - missing_identifier error - test/services/auth_service_test.dart:22:19 - Constant variables can't be assigned a value. Try removing the assignment, or remove the modifier 'const' from the variable. - assignment_to_const error - test/services/auth_service_test.dart:212:19 - Constant variables can't be assigned a value. Try removing the assignment, or remove the modifier 'const' from the variable. - assignment_to_const warning - test/components/media_picker_test.dart:12:7 - This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: Mock._givenName, Mock._givenHashCode, Mock._defaultResponse - must_be_immutable info - lib/services/auth_service.dart:10:47 - Unnecessary 'const' keyword. Try removing the keyword. - unnecessary_const 14 issues found. ```

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