add golangci-lint update

This commit is contained in:
Michel Loiseleur 2023-06-09 12:04:58 +02:00
parent 93e7fcdb64
commit de20b13879
6 changed files with 5 additions and 6 deletions

View File

@ -31,5 +31,5 @@ jobs:
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2
make lint

View File

@ -19,7 +19,6 @@ linters:
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- depguard
- dogsled
- gofmt
- goimports

View File

@ -38,7 +38,7 @@ import (
)
func init() {
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
}
const (

View File

@ -46,7 +46,7 @@ const (
)
func init() {
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
}
// RDNSClient is an interface to work with Rancher DNS(RDNS) records in etcdv3 backend.

View File

@ -34,7 +34,7 @@ type mockAPIService struct {
}
func NewMockService(privateZones []*privatedns.PrivateZone, privateZoneRecords map[string][]*privatedns.PrivateZoneRecord, dnspodDomains []*dnspod.DomainListItem, dnspodRecords map[string][]*dnspod.RecordListItem) *mockAPIService {
rand.Seed(time.Now().Unix())
rand.New(rand.NewSource(time.Now().Unix()))
return &mockAPIService{
privateZones: privateZones,
privateZoneRecords: privateZoneRecords,

View File

@ -41,7 +41,7 @@ const (
)
func init() {
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
}
// NewFakeSource creates a new fakeSource with the given config.