Слияние кода завершено, страница обновится автоматически
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: ["pre-push"]
exclude: '(^vendor|.*golden$)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-yaml
args: ["--allow-multiple-documents"]
# Ignore yaml files with {{ }} cause they're not valid.
exclude: '(test\/gohelloworld\/gohelloworld-chart\/templates\/.*yaml$)'
- id: check-shebang-scripts-are-executable
- id: check-json
- id: detect-private-key
# Ignore test yaml files with private key.
exclude: "(.*_test.go|^examples\/v1\/pipelineruns\/beta\/isolated-workspaces.yaml$)"
- repo: local
hooks:
- id: lint-yaml
name: "Lint YAML files"
entry: bash -c 'yamllint -c .yamllint $(find . -path ./vendor -prune -o -type f -regex ".*y[a]ml" -print)'
language: system
types: [yaml]
- id: lint-go
name: "Run make golangci-lint"
entry: make
args: ["golangci-lint"]
language: system
types: [go]
pass_filenames: false
- id: test-unit
name: "Run make test-unit"
entry: make
args: ["test-unit"]
language: system
types: [go]
pass_filenames: false
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )