fix: 解决golangci-lint检测的一个问题 (#204)
This commit is contained in:
parent
718e02369a
commit
8282f9f2e3
|
@ -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
|
||||
|
|
|
@ -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
|
2
Makefile
2
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
|
||||
env GOGC=25 golangci-lint run --fix -j 8 -v ./... --timeout=5m --skip-files="public/client/feishu/feishu.go"
|
Loading…
Reference in New Issue