diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index 798f1dc..6b4f5fe 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -9,10 +9,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.21.6 - - uses: golangci/golangci-lint-action@v3 + go-version: 1.23.4 + - uses: golangci/golangci-lint-action@v6 with: - version: v1.55.1 + version: v1.62.2 diff --git a/.golangci.yml b/.golangci.yml index f8e0bb5..7838959 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,12 +3,12 @@ service: run: timeout: 2m - skip-dirs: + exclude-dirs: - vendor linters-settings: govet: - check-shadowing: true + shadow: true revive: min-confidence: 0.1 rules: @@ -28,12 +28,10 @@ linters-settings: linters: enable: - bodyclose - - megacheck - revive - govet - unconvert - - megacheck - - gas + - gosec - gocyclo - dupl - misspell @@ -42,7 +40,6 @@ linters: - ineffassign - stylecheck - gochecknoinits - - exportloopref - gocritic - nakedret - gosimple @@ -51,6 +48,8 @@ linters: - goimports - gofmt - errcheck + - staticcheck + - exportloopref fast: false disable-all: true diff --git a/go.mod b/go.mod index 1a0cdea..1ea137a 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,9 @@ require ( // stable version. After the release of version 0.5.1 or later, it will be // necessary to update to the stable version. // https://github.com/piprate/json-gold/commit/36fcca9d7e487684a764e552e7d837a14546a157 - github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f + // and this + // https://github.com/piprate/json-gold/commit/19254b3ec65b01ad353de8412ae7ba10857258cf + github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b github.com/pkg/errors v0.9.1 github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35 github.com/santhosh-tekuri/jsonschema/v5 v5.3.0 diff --git a/go.sum b/go.sum index b225c08..dc02ac2 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f h1:HlPa7RcxTCrva5izPfTEfvYecO7LTahgmMRD1Qp13xg= -github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f/go.mod h1:WZ501QQMbZZ+3pXFPhQKzNwS1+jls0oqov3uQ2WasLs= +github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b h1:xyh6boGzDR4EpdEDe9ix1KhHNgOSiBjBocahA6FalEQ= +github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=