mirror of
				https://github.com/kubernetes-sigs/external-dns.git
				synced 2025-11-03 20:21:23 +01:00 
			
		
		
		
	add golangci-lint update
This commit is contained in:
		
							parent
							
								
									93e7fcdb64
								
							
						
					
					
						commit
						de20b13879
					
				
							
								
								
									
										2
									
								
								.github/workflows/lint.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint.yaml
									
									
									
									
										vendored
									
									
								
							@ -31,5 +31,5 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - name: Lint
 | 
					    - name: Lint
 | 
				
			||||||
      run: |
 | 
					      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
 | 
					        make lint
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,6 @@ linters:
 | 
				
			|||||||
  # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
 | 
					  # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
 | 
				
			||||||
  disable-all: true
 | 
					  disable-all: true
 | 
				
			||||||
  enable:
 | 
					  enable:
 | 
				
			||||||
    - depguard
 | 
					 | 
				
			||||||
    - dogsled
 | 
					    - dogsled
 | 
				
			||||||
    - gofmt
 | 
					    - gofmt
 | 
				
			||||||
    - goimports
 | 
					    - goimports
 | 
				
			||||||
 | 
				
			|||||||
@ -38,7 +38,7 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	rand.Seed(time.Now().UnixNano())
 | 
						rand.New(rand.NewSource(time.Now().UnixNano()))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
 | 
				
			|||||||
@ -46,7 +46,7 @@ const (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					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.
 | 
					// RDNSClient is an interface to work with Rancher DNS(RDNS) records in etcdv3 backend.
 | 
				
			||||||
 | 
				
			|||||||
@ -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 {
 | 
					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{
 | 
						return &mockAPIService{
 | 
				
			||||||
		privateZones:       privateZones,
 | 
							privateZones:       privateZones,
 | 
				
			||||||
		privateZoneRecords: privateZoneRecords,
 | 
							privateZoneRecords: privateZoneRecords,
 | 
				
			||||||
 | 
				
			|||||||
@ -41,7 +41,7 @@ const (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	rand.Seed(time.Now().UnixNano())
 | 
						rand.New(rand.NewSource(time.Now().UnixNano()))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// NewFakeSource creates a new fakeSource with the given config.
 | 
					// NewFakeSource creates a new fakeSource with the given config.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user