From 390103568b252a753f7ea1d85f7c8aadca7dc334 Mon Sep 17 00:00:00 2001 From: Deng Ming Date: Mon, 19 Jun 2023 15:25:19 +0800 Subject: [PATCH] remove golang--lint-ci --- .github/linters/.golangci.yml | 43 ----------------------------- .github/workflows/golangci-lint.yml | 32 --------------------- 2 files changed, 75 deletions(-) delete mode 100644 .github/linters/.golangci.yml delete mode 100644 .github/workflows/golangci-lint.yml diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml deleted file mode 100644 index baa6098e..00000000 --- a/.github/linters/.golangci.yml +++ /dev/null @@ -1,43 +0,0 @@ -run: - timeout: 5m - skip-files: - - generated.* - -issues: - new: true - -linters: - enable: - - asciicheck - - bodyclose - - deadcode - - depguard - - gci - - gocritic - - gofmt - - gofumpt - - goimports - - goprintffuncname - - gosimple - - govet - - ineffassign - - misspell - - nilerr - - rowserrcheck - - staticcheck - - structcheck - - stylecheck - - typecheck - - unconvert - - unused - - unparam - - varcheck - - whitespace - disable: - - errcheck - -linters-settings: - gci: - local-prefixes: github.com/beego - goimports: - local-prefixes: github.com/beego diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml deleted file mode 100644 index 6e5f0122..00000000 --- a/.github/workflows/golangci-lint.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: golangci-lint -on: - push: - branches: - - master - paths: - - "**/*.go" - - ".github/workflows/golangci-lint.yml" - pull_request: - types: [opened, synchronize, reopened] - paths: - - "**/*.go" - - ".github/workflows/golangci-lint.yml" -permissions: - contents: read - -jobs: - lint: - permissions: - contents: read # for actions/checkout to fetch code - pull-requests: read # for golangci/golangci-lint-action to fetch pull requests - runs-on: ubuntu-latest - steps: - - name: Checkout codebase - uses: actions/checkout@v2 - - - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - version: latest - args: --config=.github/linters/.golangci.yml - only-new-issues: true