Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: replace golint with revive (#913)

Yilong Li14e0ea3dbfe5
diff --git a/.golangci.yaml b/.golangci.yaml
index 4d8597cd47..fc91a7e94f 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -2,7 +2,7 @@ linters:
enable:
- errcheck
- goimports
- - golint
+ - revive
- govet
- staticcheck
- misspell
diff --git a/.vscode/settings.json b/.vscode/settings.json
index e517e2ab8c..257a9f8af0 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -48,5 +48,5 @@
}
},
"go.lintOnSave": "workspace",
- "go.lintTool": "golint"
+ "go.lintTool": "revive"
}
diff --git a/tests/tenant_test.go b/tests/tenant_test.go
index 88d1190a62..dab7f68f28 100644
--- a/tests/tenant_test.go
+++ b/tests/tenant_test.go
@@ -228,8 +228,8 @@ func TestTenant(t *testing.T) {
// Query migration history
instances := append(stagingInstances, prodInstances...)
- var hm1 map[string]bool = map[string]bool{}
- var hm2 map[string]bool = map[string]bool{}
+ hm1 := map[string]bool{}
+ hm2 := map[string]bool{}
for _, instance := range instances {
histories, err := ctl.getInstanceMigrationHistory(db.MigrationHistoryFind{ID: &instance.ID, Database: &databaseName})
if err != nil {
@@ -516,8 +516,8 @@ func TestTenantVCS(t *testing.T) {
// Query migration history
instances := append(stagingInstances, prodInstances...)
- var hm1 map[string]bool = map[string]bool{}
- var hm2 map[string]bool = map[string]bool{}
+ hm1 := map[string]bool{}
+ hm2 := map[string]bool{}
for _, instance := range instances {
histories, err := ctl.getInstanceMigrationHistory(db.MigrationHistoryFind{ID: &instance.ID, Database: &databaseName})
if err != nil {