代码拉取完成,页面将自动刷新
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:
include-go-root: true
packages:
- sync/atomic
packages-with-error-message:
- sync/atomic: "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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。