Open GabdaSilva07 opened 1 year ago
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
✅ Commit e428421
• Check the SendMessageAsync method to ensure that the message is being converted to a Firebase message correctly. • Check the SendMessageAsync method to ensure that the Firebase message is being sent correctly. • Check the SendMessageAsync method to ensure that the response from the Firebase service is being handled correctly.Sandbox Execution Logs
trunk init
1/7 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 12 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (1 github-workflow file) checkov 2.4.9 (1 docker, 6 json, 2 yaml files) git-diff-check (72 files) hadolint 2.12.0 (1 docker file) (created .hadolint.yaml) markdownlint 0.37.0 (2 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (1 lockfile file) prettier 3.0.3 (1 javascript, 5 json, 2 markdown, 2 yaml files) taplo 0.8.1 (1 toml file) terrascan 1.18.3 (1 docker file) trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files) trufflehog 3.57.0 (73 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
2/7 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
3/7 ❌ (`1`)ISSUES EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs:25:1 25:1 high trailing whitespace. git-diff-check/error 28:1 high trailing whitespace. git-diff-check/error 32:1 high trailing whitespace. git-diff-check/error 38:1 high trailing whitespace. git-diff-check/error 57:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 5 new issues
trunk fmt EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
4/7 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
5/7 ❌ (`1`)ISSUES EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs:53:1 53:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 1 new issue
trunk fmt EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
6/7 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs
7/7 ✓Checked 1 file ✔ No issues
EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
✅ Commit 3534169
• Check the InvokeAsync method to ensure that the Authorization header is being retrieved correctly. • Check the InvokeAsync method to ensure that the ID token is being verified correctly. • Check the InvokeAsync method to ensure that the user is being authorized correctly.Sandbox Execution Logs
trunk init
1/9 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 12 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (1 github-workflow file) checkov 2.4.9 (1 docker, 6 json, 2 yaml files) git-diff-check (72 files) hadolint 2.12.0 (1 docker file) (created .hadolint.yaml) markdownlint 0.37.0 (2 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (1 lockfile file) prettier 3.0.3 (1 javascript, 5 json, 2 markdown, 2 yaml files) taplo 0.8.1 (1 toml file) terrascan 1.18.3 (1 docker file) trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files) trufflehog 3.57.0 (73 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
2/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
3/9 ❌ (`1`)ISSUES EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs:42:1 42:1 high trailing whitespace. git-diff-check/error 46:1 high trailing whitespace. git-diff-check/error 48:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 3 new issues
trunk fmt EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
4/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
5/9 ❌ (`1`)ISSUES EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs:42:1 42:1 high trailing whitespace. git-diff-check/error 47:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 2 new issues
trunk fmt EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
6/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
7/9 ❌ (`1`)ISSUES EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs:42:1 42:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 1 new issue
trunk fmt EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
8/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs
9/9 ✓Checked 1 file ✔ No issues
EllisFitnessApp/API/Controllers/WeatherForecastController.cs
❌ Failed
• Check the Get method to ensure that the SendMessageAsync method of the Firebase service is being called correctly. • Check the Get method to ensure that the response from the SendMessageAsync method is being handled correctly.Sandbox Execution Logs
trunk init
1/3 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 12 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (1 github-workflow file) checkov 2.4.9 (1 docker, 6 json, 2 yaml files) git-diff-check (72 files) hadolint 2.12.0 (1 docker file) (created .hadolint.yaml) markdownlint 0.37.0 (2 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (1 lockfile file) prettier 3.0.3 (1 javascript, 5 json, 2 markdown, 2 yaml files) taplo 0.8.1 (1 toml file) terrascan 1.18.3 (1 docker file) trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files) trufflehog 3.57.0 (73 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt EllisFitnessApp/API/Controllers/WeatherForecastController.cs
2/3 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/API/Controllers/WeatherForecastController.cs
3/3 ✓Checked 1 file ✔ No issues
EllisFitnessApp/Logger/Logger.cs
✅ Commit b38bed3
• Check the LogAsync method to ensure that the log message is being logged correctly. • Check the LogToDatabase method to ensure that the log message is being saved to the database correctly.Sandbox Execution Logs
trunk init
1/9 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ⣯ Downloading Trunk 1.16.0... ⣟ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 12 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (1 github-workflow file) checkov 2.4.9 (1 docker, 6 json, 2 yaml files) git-diff-check (72 files) hadolint 2.12.0 (1 docker file) (created .hadolint.yaml) markdownlint 0.37.0 (2 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.0 (1 lockfile file) prettier 3.0.3 (1 javascript, 5 json, 2 markdown, 2 yaml files) taplo 0.8.1 (1 toml file) terrascan 1.18.3 (1 docker file) trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files) trufflehog 3.57.0 (73 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt EllisFitnessApp/Logger/Logger.cs
2/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Logger/Logger.cs
3/9 ❌ (`1`)ISSUES EllisFitnessApp/Logger/Logger.cs:67:1 67:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 1 new issue
trunk fmt EllisFitnessApp/Logger/Logger.cs
4/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Logger/Logger.cs
5/9 ❌ (`1`)ISSUES EllisFitnessApp/Logger/Logger.cs:67:1 67:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 1 new issue
trunk fmt EllisFitnessApp/Logger/Logger.cs
6/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Logger/Logger.cs
7/9 ❌ (`1`)ISSUES EllisFitnessApp/Logger/Logger.cs:32:1 32:1 high trailing whitespace. git-diff-check/error 67:1 high trailing whitespace. git-diff-check/error Checked 1 file ✖ 2 new issues
trunk fmt EllisFitnessApp/Logger/Logger.cs
8/9 ✓Found no applicable linters for the requested path
trunk check --fix EllisFitnessApp/Logger/Logger.cs
9/9 ✓Checked 1 file ✔ No issues
I have finished reviewing the code for completeness. I did not find errors for sweep/fix-firebase-service-issue
.
.
🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
Checklist
- [X] `EllisFitnessApp/FCM.Messaging/FirebaseMessagingService.cs` ✅ Commit [`e428421`](https://github.com/GabdaSilva07/Ellis-BackEnd/commit/e428421762b873a9ddca2dcf995b6f2a9e8662ac) - [X] `EllisFitnessApp/Authentification/FirebaseAuthMiddleware.cs` ✅ Commit [`3534169`](https://github.com/GabdaSilva07/Ellis-BackEnd/commit/3534169aefcbf6a8a8148f8f951cf31579bdf7eb) - [X] `EllisFitnessApp/API/Controllers/WeatherForecastController.cs` ❌ Failed - [X] `EllisFitnessApp/Logger/Logger.cs` ✅ Commit [`b38bed3`](https://github.com/GabdaSilva07/Ellis-BackEnd/commit/b38bed359b592fe7c8d9fadbd5aafe7490d86c9c)