Add pre-commit framework #7

Merged
fyrchik merged 4 commits from fyrchik/frostfs-api-go:add-pre-commit into master 2023-03-09 19:47:05 +00:00
2 changed files with 16 additions and 0 deletions
Showing only changes of commit 0f8183e41f - Show all commits

10
.gitlint Normal file
View file

@ -0,0 +1,10 @@
[general]
fail-without-commits=true
contrib=CC1
[title-match-regex]
regex=^\[\#[0-9]+\]\s
[ignore-by-title]
regex=^Release(.*)
ignore=title-match-regex

View file

@ -22,3 +22,9 @@ repos:
rev: v1.51.2
hooks:
- id: golangci-lint
- repo: https://github.com/jorisroovers/gitlint
rev: v0.18.0
hooks:
- id: gitlint
stages: [commit-msg]