mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 05:02:58 +03:00
[PR #400] [MERGED] Migrate backend linter to v2. Fixed unit test workflow #833
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/400
Author: @Rich7690
Created: 3/28/2025
Status: ✅ Merged
Merged: 3/28/2025
Merged by: @kmendell
Base:
main← Head:main📝 Commits (1)
8835e91refactor(backend): migrate backend linter to v2. Fixed unit test workflow📊 Changes
16 files changed (+95 additions, -53 deletions)
View changed files
📝
.github/workflows/backend-linter.yml(+2 -2)📝
.github/workflows/unit-tests.yml(+3 -2)📝
Dockerfile(+1 -1)📝
backend/.golangci.yml(+54 -15)📝
backend/go.mod(+1 -1)📝
backend/internal/controller/oidc_controller.go(+3 -2)📝
backend/internal/dto/dto_mapper.go(+6 -6)📝
backend/internal/dto/validations.go(+3 -2)📝
backend/internal/middleware/cors.go(+3 -1)📝
backend/internal/model/api_key.go(+1 -3)📝
backend/internal/model/base.go(+1 -1)📝
backend/internal/service/api_key_service.go(+2 -1)📝
backend/internal/service/custom_claim_service.go(+3 -2)📝
backend/internal/service/jwt_service_test.go(+6 -6)📝
backend/internal/utils/aaguid_util_test.go(+2 -2)📝
backend/internal/utils/email/composer.go(+4 -6)📄 Description
I realized after I added the backend linter, the latest
v2of golangci-lint was already out. So I migrated to the latest v2 config format and added a couple more useful linters and fixed the relevant issues. Additionally I noticed there was a broken test and the automated workflow did not fail it since it was piping the output🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.