diff --git a/.github/workflows/ci-v2.yml b/.github/workflows/ci-v2.yml index c3d280f..39e50bb 100644 --- a/.github/workflows/ci-v2.yml +++ b/.github/workflows/ci-v2.yml @@ -18,13 +18,13 @@ jobs: steps: - name: set up go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.20" id: go - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: build and test run: | @@ -33,9 +33,10 @@ jobs: working-directory: v2 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: latest + args: --config ../.golangci.yml working-directory: v2 - name: install goveralls, submit coverage diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85086fa..5993872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,13 @@ jobs: steps: - name: set up go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.20" id: go - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: build and test run: | @@ -32,7 +32,7 @@ jobs: go build -race - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: latest diff --git a/.golangci.yml b/.golangci.yml index e71e5b5..0c51458 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -15,6 +15,7 @@ linters-settings: linters: enable: + - megacheck - revive - govet - unconvert @@ -23,7 +24,6 @@ linters: - gocyclo - dupl - misspell - - unparam - typecheck - ineffassign - stylecheck @@ -41,7 +41,4 @@ run: output: format: tab skip-dirs: - - vendor - -issues: - exclude-use-default: false + - vendor \ No newline at end of file diff --git a/v2/.golangci.yml b/v2/.golangci.yml deleted file mode 100644 index 3143c29..0000000 --- a/v2/.golangci.yml +++ /dev/null @@ -1,44 +0,0 @@ -linters-settings: - govet: - check-shadowing: true - gocyclo: - min-complexity: 15 - misspell: - locale: US - gocritic: - enabled-tags: - - performance - - style - - experimental - disabled-checks: - - wrapperFunc - -linters: - enable: - - gocritic - - megacheck - - revive - - govet - - unconvert - - megacheck - - gas - - gocyclo - - dupl - - misspell - - unused - - typecheck - - ineffassign - - stylecheck - - gochecknoinits - - exportloopref - - nakedret - - gosimple - - prealloc - fast: false - disable-all: true - -run: - output: - format: tab - skip-dirs: - - vendor \ No newline at end of file