Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore(lint): remove dead exclusions, scope the one that works (#21400)
Danny Xuaa11b28eb734
diff --git a/.golangci.yaml b/.golangci.yamlindex 61955c03b6..cef079ceea 100644--- a/.golangci.yaml+++ b/.golangci.yaml@@ -13,8 +13,14 @@ linters:- sqlclosecheck- tparallel- unparam- - unusedsettings:+ errcheck:+ # A deferred Rollback after a successful commit always errors; that is the idiom,+ # not a bug. Matched by signature, so it cannot swallow an unrelated symbol whose+ # name merely contains "Rollback".+ exclude-functions:+ - (*database/sql.Tx).Rollback+ - (github.com/jackc/pgx/v5.Tx).Rollbackexhaustive:explicit-exhaustive-switch: trueforbidigo:@@ -101,21 +107,6 @@ linters:- common-false-positives- legacy- std-error-handling- rules:- - path: (.+)\.go$- text: Rollback- - path: (.+)\.go$- text: logger.Sync- - path: (.+)\.go$- text: pgInstance.Stop- - path: (.+)\.go$- text: fmt.Printf- - path: (.+)\.go$- text: Enter(.*)_(.*)- - path: (.+)\.go$- text: Exit(.*)_(.*)- - path: action/bitbucket/bitbucket.go- text: "unsecure-url-scheme.*http://api.bitbucket.org"# Filters reported issues only; excluded paths are still analyzed. Not a speed knob.paths:- backend/generated-go