diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index eb45c40..43bfb35 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: ^1.21 - id: go - name: Check go mod is tidy run: | @@ -33,7 +32,5 @@ jobs: - name: Run staticcheck run: staticcheck ./... - - name: Install golangci-lint - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 - - name: Run golangci-lint - run: golangci-lint run + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 diff --git a/.golangci.yml b/.golangci.yml index b8cd0cb..f65b0c5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,7 +22,10 @@ linters: # # Maybe fix later: # - - goerr113 + - mnd + - depguard + - testifylint + - err113 - stylecheck - tagliatelle @@ -32,28 +35,14 @@ linters: - contextcheck - rowserrcheck - sqlclosecheck - - structcheck - wastedassign - # - # Disabled because deprecated: - # - - deadcode - - exhaustivestruct - - golint - - ifshort - - interfacer - - maligned - - nosnakecase - - scopelint - - varcheck - linters-settings: gofumpt: extra-rules: true gosec: excludes: - - G404 # Insecure random number source (rand) + - G404 # Insecure random number source (rand) govet: enable-all: true disable: