fix: resolve all golangci-lint errors and integrate linter into CI/CD, Makefile, and check script
CI Quality Checks & Tests / Frontend Typecheck & Build (push) Successful in 1m28s
CI Quality Checks & Tests / Gitleaks Secret Detection (push) Failing after 3m29s
CI Quality Checks & Tests / Go Lint & Unit Tests (push) Failing after 3h12m8s

This commit is contained in:
2026-08-24 21:46:52 -07:00
parent 4197d86626
commit d7ed8876dc
10 changed files with 48 additions and 20 deletions
+6 -2
View File
@@ -14,14 +14,18 @@ func TestDatabaseOperations(t *testing.T) {
if err != nil {
t.Fatalf("failed to create temp dir: %v", err)
}
defer os.RemoveAll(tempDir)
defer func() {
_ = os.RemoveAll(tempDir)
}()
dbPath := filepath.Join(tempDir, "test.db")
database, err := InitDB(dbPath)
if err != nil {
t.Fatalf("InitDB failed: %v", err)
}
defer database.Close()
defer func() {
_ = database.Close()
}()
// 1. Test User
u, err := database.CreateUser("admin", "$2a$10$dummyhashvalue")