diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 680a6e4..9608b0d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -35,3 +35,18 @@ jobs: - name: Unit tests run: go test ./... + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: golangci-lint + uses: golangci/golangci-lint-action@v3.7.0 + with: + version: latest + args: -v --config ./.golangci.yml diff --git a/.golangci.yml b/.golangci.yml index f6972aa..4cf8920 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -218,19 +218,16 @@ linters-settings: linters: enable: - - gofmt + # - gofmt - govet - - errcheck - - staticcheck - - unused - - gosimple - - structcheck - - varcheck + # - errcheck + # - staticcheck + # - unused + # - gosimple - ineffassign - - deadcode - typecheck # Additional - - lll + # - lll - godox #- gomnd #- goconst @@ -239,10 +236,10 @@ linters: # - nestif # - gomodguard - nakedret - - gci + # - gci - misspell - - gofumpt - - whitespace + # - gofumpt + # - whitespace - unconvert - predeclared - noctx