diff --git a/.golangci.yml b/.golangci.yml index 22c18b1..5f63a10 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,3 +2,9 @@ linters: disable: enable: - gosec +linters-settings: + gosec: + excludes: + # G115: integer overflow conversion + # exclude the rule since it tends to be false positive + - G115 diff --git a/Makefile b/Makefile index bb71cb4..1a5aaff 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ lint: @if [ "z${ARCH}" = "zx86_64" ] && which golangci-lint >/dev/null ; then golangci-lint run --config .golangci.yml ; else echo "WARNING: Linting skipped (not on x86_64 or linter not installed)"; fi install-lint: - sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.54.2 + sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.61.0 test: unittest lint $(GO) vet ./... diff --git a/go.mod b/go.mod index e4b21d3..fcc4b27 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/edgexfoundry/go-mod-registry/v3 -go 1.21 +go 1.23 require ( github.com/edgexfoundry/go-mod-core-contracts/v3 v3.2.0-dev.46