diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 16efc79905..32a68415ac 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,8 +18,8 @@ jobs: # This workflow contains a single job called "build" golangci-lint: # The type of runner that the job will run on - runs-on: macos-12 - + runs-on: ubuntu-latest + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -32,7 +32,7 @@ jobs: with: go-version-file: .go-version #go-version: '1.21' - cache: false + cache: false # Runs a set of commands using the runners shell - name: golangci-lint @@ -41,5 +41,5 @@ jobs: version: v1.45.2 #version: v1.54 working-directory: ./tencentcloud - args: --new-from-rev=origin/master -v + args: --new-from-rev=origin/master --config=../.golangci.yml --issues-exit-code=0 -v #args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=origin/master -v diff --git a/.golangci.yml b/.golangci.yml index 831b35d913..b4cefe1c9e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,14 +14,13 @@ linters: - errcheck - gofmt - gosimple - - ineffassign - - misspell - - staticcheck - - structcheck - - unconvert - - unused - - varcheck - - vet +# - ineffassign +# - staticcheck +# - structcheck +# - unconvert +# - unused +# - varcheck +# - vet linters-settings: errcheck: