1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/knative-serving

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
.golangci.yaml 1.6 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Julian Friedman Отправлено 22.03.2021 15:10 60a7f99
run:
timeout: 5m
build-tags:
- e2e
- performance
- probe
- preupgrade
- postupgrade
- postdowngrade
- istio
skip-dirs:
- pkg/client
skip-files:
- ".pb.go$"
linters:
enable:
- asciicheck
- depguard
- errorlint
- golint
- gosec
- importas
- prealloc
- 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:
autoscalingv1alpha1: knative.dev/serving/pkg/apis/autoscaling/v1alpha1
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:
- golint
# Allow source and sink receivers in conversion code for clarity.
- path: _conversion\.go
text: "ST1016:"
linters:
- stylecheck
- path: _conversion\.go
text: "receiver name"
linters:
- golint
# 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

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/knative-serving.git
git@api.gitlife.ru:oschina-mirror/knative-serving.git
oschina-mirror
knative-serving
knative-serving
main