forked from ceph/ceph-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
35 lines (29 loc) · 848 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
repos:
# Check if the commit message has a valid sign-off.
- repo: https://github.com/gklein/check_signoff
rev: v1.0.5
hooks:
- id: check-signoff
# Catch gofmt issues, if any.
- repo: git://github.com/dnephin/pre-commit-golang
rev: v0.3.5
hooks:
- id: go-fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
# Verify syntax of yaml and json files.
- id: check-json
- id: check-yaml
args: [--multi]
# Makes sure that files end in a new line.
- id: end-of-file-fixer
# Trims trailing whitespace.
- id: trailing-whitespace
# Run commitlint check on the commit message.
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.0
hooks:
- id: commitlint
stages: [commit-msg]