fix: 解决golangci-lint检测的一个问题 (#204)

This commit is contained in:
二丫讲梵 2023-04-25 21:54:27 +08:00 committed by GitHub
parent 718e02369a
commit 8282f9f2e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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
env GOGC=25 golangci-lint run --fix -j 8 -v ./... --timeout=5m --skip-files="public/client/feishu/feishu.go"