diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml index a6d72d1..f89c9df 100644 --- a/.github/workflows/go-ci.yml +++ b/.github/workflows/go-ci.yml @@ -15,7 +15,7 @@ jobs: uses: golangci/golangci-lint-action@v3 with: version: v1.47.3 - args: --timeout=5m + args: --timeout=5m --skip-files="public/client/feishu/feishu.go" build: name: go-build runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5e36069..199af1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: golangci-lint name: golangci-lint description: Fast linters runner for Go. - entry: golangci-lint run --fix + entry: golangci-lint run --fix --skip-files="public/client/feishu/feishu.go" types: [go] language: golang pass_filenames: false \ No newline at end of file diff --git a/Makefile b/Makefile index 89d6a4a..86fc9a1 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ build-linux-arm: CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -o go-ldap-admin main.go lint: - env GOGC=25 golangci-lint run --fix -j 8 -v ./... --timeout=5m \ No newline at end of file + env GOGC=25 golangci-lint run --fix -j 8 -v ./... --timeout=5m --skip-files="public/client/feishu/feishu.go" \ No newline at end of file