mirror of
https://github.com/containous/traefik.git
synced 2025-01-25 06:03:49 +03:00
chore: upgrade linter
This commit is contained in:
parent
5841c9a7a5
commit
03b08d67f0
@ -67,6 +67,7 @@
|
|||||||
"scopelint", # Deprecated
|
"scopelint", # Deprecated
|
||||||
"interfacer", # Deprecated
|
"interfacer", # Deprecated
|
||||||
"maligned", # Deprecated
|
"maligned", # Deprecated
|
||||||
|
"golint", # Deprecated
|
||||||
"sqlclosecheck", # Not relevant (SQL)
|
"sqlclosecheck", # Not relevant (SQL)
|
||||||
"rowserrcheck", # Not relevant (SQL)
|
"rowserrcheck", # Not relevant (SQL)
|
||||||
"lll", # Not relevant
|
"lll", # Not relevant
|
||||||
@ -97,6 +98,7 @@
|
|||||||
"unparam", # Too strict
|
"unparam", # Too strict
|
||||||
"godox", # Too strict
|
"godox", # Too strict
|
||||||
"forcetypeassert", # Too strict
|
"forcetypeassert", # Too strict
|
||||||
|
"tagliatelle", # Not compatible with current tags.
|
||||||
]
|
]
|
||||||
|
|
||||||
[issues]
|
[issues]
|
||||||
|
@ -19,7 +19,7 @@ RUN mkdir -p /usr/local/bin \
|
|||||||
&& chmod +x /usr/local/bin/go-bindata
|
&& chmod +x /usr/local/bin/go-bindata
|
||||||
|
|
||||||
# Download golangci-lint binary to bin folder in $GOPATH
|
# Download golangci-lint binary to bin folder in $GOPATH
|
||||||
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.39.0
|
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.41.1
|
||||||
|
|
||||||
# Download misspell binary to bin folder in $GOPATH
|
# Download misspell binary to bin folder in $GOPATH
|
||||||
RUN curl -sfL https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh | bash -s -- -b $GOPATH/bin v0.3.4
|
RUN curl -sfL https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh | bash -s -- -b $GOPATH/bin v0.3.4
|
||||||
|
@ -56,7 +56,7 @@ func (n MockSpan) Tracer() opentracing.Tracer { retu
|
|||||||
func (n MockSpan) LogEvent(event string) {}
|
func (n MockSpan) LogEvent(event string) {}
|
||||||
func (n MockSpan) LogEventWithPayload(event string, payload interface{}) {}
|
func (n MockSpan) LogEventWithPayload(event string, payload interface{}) {}
|
||||||
func (n MockSpan) Log(data opentracing.LogData) {}
|
func (n MockSpan) Log(data opentracing.LogData) {}
|
||||||
func (n MockSpan) Reset() {
|
func (n *MockSpan) Reset() {
|
||||||
n.Tags = make(map[string]interface{})
|
n.Tags = make(map[string]interface{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user