12 Star 31 Fork 11

Gitee 极速下载 / Knative

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/knative/serving
克隆/下载
.golangci.yaml 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
run:
timeout: 10m
build-tags:
- e2e
- upgrade
skip-dirs:
- pkg/client
skip-files:
- ".pb.go$"
linters:
enable:
- asciicheck
- depguard
- errorlint
- gosec
- importas
- prealloc
- revive
- stylecheck
- tparallel
- unconvert
- unparam
disable:
- errcheck
linters-settings:
depguard:
rules:
main:
deny:
- pkg: sync/atomic
desc: "please use type-safe atomics from go.uber.org/atomic"
importas:
no-unaliased: true
alias:
- pkg: knative.dev/serving/pkg/apis/autoscaling/v1alpha1
alias: autoscalingv1alpha1
issues:
include:
# Disable excluding issues about comments from golint.
- EXC0002
exclude-rules:
- path: test # Excludes /test, *_test.go etc.
linters:
- gosec
- unparam
# Ignore "context.Context should be the first parameter of a function" errors in tests.
# See: https://github.com/golang/lint/issues/422
- path: test
text: "context.Context should be the first"
linters:
- revive
# Allow source and sink receivers in conversion code for clarity.
- path: _conversion\.go
text: "ST1016:"
linters:
- stylecheck
- path: _conversion\.go
text: "receiver name"
linters:
- revive
# This check has quite a few false positives where there isn't much value in the package comment.
- text: "ST1000: at least one file in a package should have a package comment"
linters:
- stylecheck
Go
1
https://gitee.com/mirrors/Knative.git
git@gitee.com:mirrors/Knative.git
mirrors
Knative
Knative
main

搜索帮助