Merge pull request #3580 from milosgajdos/update-linter
Update golangci-lint version and fix reports
This commit is contained in:
commit
b60926597a
@ -6,7 +6,7 @@ linters:
|
|||||||
- unconvert
|
- unconvert
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
- revive
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- vet
|
- vet
|
||||||
- unused
|
- unused
|
||||||
|
@ -246,9 +246,7 @@ func (ctx *muxVarsContext) Value(key interface{}) interface{} {
|
|||||||
return ctx.vars
|
return ctx.vars
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(keyStr, "vars.") {
|
keyStr = strings.TrimPrefix(keyStr, "vars.")
|
||||||
keyStr = strings.TrimPrefix(keyStr, "vars.")
|
|
||||||
}
|
|
||||||
|
|
||||||
if v, ok := ctx.vars[keyStr]; ok {
|
if v, ok := ctx.vars[keyStr]; ok {
|
||||||
return v
|
return v
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
GOLANGCI_LINT_VERSION="v1.27.0"
|
GOLANGCI_LINT_VERSION="v1.44.0"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
|
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
|
||||||
|
Loading…
Reference in New Issue
Block a user