Merge pull request #577 from zalando-incubator/update-golangci-lint-cfg

Update golangci-lint config
This commit is contained in:
Mikkel Oscar Lyderik Larsen
2023-06-30 09:24:57 +02:00
committed by GitHub
2 changed files with 2 additions and 7 deletions

View File

@ -4,7 +4,6 @@ run:
linters: linters:
disable-all: true disable-all: true
enable: enable:
- deadcode
- errcheck - errcheck
- gosimple - gosimple
- govet - govet
@ -12,4 +11,3 @@ linters:
- staticcheck - staticcheck
- typecheck - typecheck
- unused - unused
- varcheck

View File

@ -86,8 +86,6 @@ func (p *ExternalRPSCollectorPlugin) NewCollector(
weight = num / 100.0 weight = num / 100.0
} }
confCopy.Config = map[string]string{ confCopy.Config = map[string]string{
"query": fmt.Sprintf( "query": fmt.Sprintf(
ExternalRPSQuery, ExternalRPSQuery,
@ -125,4 +123,3 @@ func (c *ExternalRPSCollector) GetMetrics() ([]CollectedMetric, error) {
func (c *ExternalRPSCollector) Interval() time.Duration { func (c *ExternalRPSCollector) Interval() time.Duration {
return c.interval return c.interval
} }