Files
shtil/lefthook.yml
TMSHandDevin dcee1faf7d chore: добавлены правила git, шаблон PR и проверочные хуки (#4)
Правила работы с ветками, коммитами и PR в docs/contributing.md. Lefthook проверяет формат коммита, форматирует Go и ищет секреты перед коммитом.

Refs: 1.2.8, 1.2.9, 1.2.10, 1.13.4

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Reviewed-on: #4
Co-authored-by: BrowenSiz <top.timashevsky@gmail.com>
2026-11-08 15:35:13 +00:00

19 lines
545 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Git-хуки проекта. Установка один раз после клонирования: lefthook install
# Правила — docs/contributing.md
pre-commit:
parallel: true
commands:
gitleaks:
run: gitleaks git --pre-commit --staged --redact --no-banner .
gofmt:
glob: "*.go"
run: gofmt -w {staged_files}
stage_fixed: true
# prettier подключается в #2.7.2 вместе с pnpm-workspace
commit-msg:
commands:
format:
run: node tools/git-hooks/commit-msg.mjs {1}