Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Update linter to 1.55
Browse files Browse the repository at this point in the history
  • Loading branch information
lauravuo committed Nov 29, 2023
1 parent 88bb118 commit f1bc8d0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions agent/pltype/pl_types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:goconst
package pltype

import (
Expand Down
2 changes: 1 addition & 1 deletion agent/storage/wrapper/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
5 changes: 2 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check warning on line 176 in server/server.go

View check run for this annotation

Codecov / codecov/patch

server/server.go#L175-L176

Added lines #L175 - L176 were not covered by tests
})

// First find the security pipe for the correct crypto. Then unpack the
Expand Down

0 comments on commit f1bc8d0

Please sign in to comment.