diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dda863b..b40ba4c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,17 +13,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: ./go.mod - # This steps sets the GIT_DIFF environment variable to true - # if files defined in PATTERS changed - - uses: technote-space/get-diff-action@v6.1.2 - with: - # This job will pass without running if go.mod, go.sum, and *.go - # wasn't modified. - PATTERNS: | - **/**.go - go.mod - go.sum - - uses: golangci/golangci-lint-action@v3.7.0 + + - uses: golangci/golangci-lint-action@v7.0.0 with: version: latest args: --timeout 10m diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 186cd74..adb57b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,15 +33,3 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt - - integration_test: - name: Run Integration Tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: set up go - uses: actions/setup-go@v4 - with: - go-version-file: ./go.mod - - name: Integration Tests - run: echo "No integration tests yet" diff --git a/.golangci.yml b/.golangci.yml index ecbd405..edcbfdc 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,38 +1,42 @@ +version: "2" run: - timeout: 5m modules-download-mode: readonly - linters: enable: - - errcheck - - gofmt - - goimports - gosec - - gosimple - - govet - - ineffassign - misspell - revive - - staticcheck - - typecheck + - errorlint + - unconvert - unused - -issues: - exclude-use-default: false - include: - - EXC0012 # EXC0012 revive: Annoying issue about not having a comment. - - EXC0014 # EXC0014 revive: Annoying issue about not having a comment. - -linters-settings: - revive: - rules: - - name: package-comments - disabled: true - - name: duplicated-imports - severity: warning - - name: exported - arguments: - - disableStutteringCheck - - goimports: - local-prefixes: github.com/rollkit + - staticcheck + settings: + revive: + rules: + - name: package-comments + disabled: true + - name: duplicated-imports + severity: warning + - name: exported + arguments: + - disableStutteringCheck + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt + - goimports + settings: + goimports: + local-prefixes: + - github.com/rollkit + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 608d3c6..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch Package", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${fileDirname}" - } - ] -} \ No newline at end of file diff --git a/Makefile b/Makefile index 9d3310c..edb235c 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ deps: .PHONY: deps ## lint: Run linters golangci-lint and markdownlint. -lint: vet +lint: @echo "--> Running golangci-lint" @golangci-lint run @echo "--> Running markdownlint"