diff --git a/.golangci.yml b/.golangci.yml index 22c18b1a..5f63a101 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 bb71cb48..1a5aaff9 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 86125e4c..5e796d54 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/edgexfoundry/go-mod-core-contracts/v3 -go 1.21 +go 1.23 require ( github.com/fxamacker/cbor/v2 v2.7.0