lint: enable custom linters from go-lint project

This commit is contained in:
2026-09-19 21:36:31 -07:00
parent ef71828ce2
commit c70732d6af
6 changed files with 83 additions and 5 deletions

View File

@@ -39,9 +39,9 @@ func assertForeignKeysAreGood(t *testing.T, conn *sqlx.DB) {
t.Helper()
// FKs should be enabled and intact at all times
var fkEnabled bool
require.NoError(t, conn.Get(&fkEnabled, `pragma foreign_keys`))
assert.True(t, fkEnabled)
var isFkEnabled bool
require.NoError(t, conn.Get(&isFkEnabled, `pragma foreign_keys`))
assert.True(t, isFkEnabled)
assert.NoError(t, db.PragmaForeignKeyCheck(conn))
// ...and enforcement should be in effect again, not merely reported as on