fix: resolve all linting and formatting issues

- Fix error return value checks (errcheck)
- Fix unused parameters by using underscore prefix
- Add missing package comments to all packages
- Fix context key type issue in middleware (use typed contextKey)
- Replace deprecated trace.NewNoopTracerProvider with noop.NewTracerProvider
- Fix embedded field selector in database client
- Remove trailing whitespace
- Remove revive linter (as requested) to avoid stuttering warnings for public API interfaces

All linting and formatting checks now pass.
This commit is contained in:
2025-11-05 20:48:59 +01:00
parent 926f3f927e
commit 52d48590ae
21 changed files with 57 additions and 68 deletions

View File

@@ -1,3 +1,4 @@
// Package schema defines the Ent schema for domain entities.
package schema
import (
@@ -46,4 +47,3 @@ func (AuditLog) Indexes() []ent.Index {
index.Fields("action"),
}
}

View File

@@ -30,4 +30,3 @@ func (Permission) Edges() []ent.Edge {
edge.To("role_permissions", RolePermission.Type),
}
}

View File

@@ -37,4 +37,3 @@ func (Role) Edges() []ent.Edge {
edge.To("user_roles", UserRole.Type),
}
}

View File

@@ -32,4 +32,3 @@ func (RolePermission) Edges() []ent.Edge {
Field("permission_id"),
}
}

View File

@@ -41,4 +41,3 @@ func (User) Edges() []ent.Edge {
edge.To("user_roles", UserRole.Type),
}
}

View File

@@ -32,4 +32,3 @@ func (UserRole) Edges() []ent.Edge {
Field("role_id"),
}
}