diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6e512d41..f8985971 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -15,7 +15,7 @@ COPY --from=indy-base /usr/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so.1.1 COPY --from=indy-base /usr/lib/libssl.so.1.1 /usr/lib/libssl.so.1.1 # linter -RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2 +RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 ENV GO_TOOLS="\ github.com/cweill/gotests/gotests@latest \ diff --git a/.golangci.yml b/.golangci.yml index 1aec17af..cd14ac27 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -138,6 +138,6 @@ issues: - typecheck run: service: - golangci-lint-version: 1.54.x # use the fixed version to not introduce new linters unexpectedly + golangci-lint-version: 1.55.x # use the fixed version to not introduce new linters unexpectedly prepare: - echo "here I can run custom commands, but no preparation needed for this repo" diff --git a/agent/pltype/pl_types.go b/agent/pltype/pl_types.go index bd7b343f..56b2804f 100644 --- a/agent/pltype/pl_types.go +++ b/agent/pltype/pl_types.go @@ -1,3 +1,4 @@ +//nolint:goconst package pltype import ( diff --git a/agent/storage/wrapper/wrapper.go b/agent/storage/wrapper/wrapper.go index ce43e38b..ca70babd 100644 --- a/agent/storage/wrapper/wrapper.go +++ b/agent/storage/wrapper/wrapper.go @@ -74,7 +74,7 @@ func (s *StorageProvider) Init() (err error) { path = s.conf.FilePath } - filename := path + "/" + s.conf.FileName + ".bolt" + filename := path + "/" + s.conf.FileName + ".bolt" //nolint:goconst if len(s.conf.BucketIDs) == 0 { return fmt.Errorf("no buckets specified") diff --git a/server/server.go b/server/server.go index 5dc68aa6..aff27648 100644 --- a/server/server.go +++ b/server/server.go @@ -171,10 +171,9 @@ func transportPL(ourAddress *endp.Addr, data []byte) { }), func(exception interface{}) { if utils.Settings.LocalTestMode() { panic(exception) - } else { - glog.Error(exception) - debug.PrintStack() } + glog.Error(exception) + debug.PrintStack() }) // First find the security pipe for the correct crypto. Then unpack the