2020-05-13 13:32:29 +00:00
|
|
|
---
|
|
|
|
# rules are documented at https://commitlint.js.org/#/reference-rules
|
2020-10-21 10:34:50 +00:00
|
|
|
# each rule has an array of three values:
|
2020-05-13 13:32:29 +00:00
|
|
|
# - 0, 1, 2 (rule is disabled, warning or error)
|
|
|
|
# - always/never
|
|
|
|
# - value
|
|
|
|
rules:
|
|
|
|
# the subject may not exceed 72 characters
|
|
|
|
header-max-length: [2, always, 72]
|
|
|
|
# the subject may not end with a "."
|
|
|
|
header-full-stop: [2, never, "."]
|
2020-10-21 10:27:15 +00:00
|
|
|
|
|
|
|
# the subject cannot be empty
|
|
|
|
subject-empty: [2, never]
|
|
|
|
|
2020-05-13 13:32:29 +00:00
|
|
|
# we do not use scopes for commit messages
|
2020-10-21 10:38:52 +00:00
|
|
|
scope-empty: [0, always]
|
2020-10-21 10:27:15 +00:00
|
|
|
|
|
|
|
# Body shouldn't be empty
|
|
|
|
body-min-length: [2, always, 1]
|
|
|
|
# Wrap the lines to 80 characters.
|
2021-12-21 14:01:13 +00:00
|
|
|
body-max-line-length: [2, always, 80]
|
2020-10-21 10:27:15 +00:00
|
|
|
|
|
|
|
# always sign off the commit
|
2021-08-04 12:10:35 +00:00
|
|
|
trailer-exists: [2, always, "Signed-off-by:"]
|
2020-10-21 10:27:15 +00:00
|
|
|
|
2020-05-13 13:32:29 +00:00
|
|
|
# valid types/prefixes, see docs/development-guide.md
|
|
|
|
type-enum:
|
2020-08-19 06:03:35 +00:00
|
|
|
- 2
|
2020-05-13 13:32:29 +00:00
|
|
|
- always
|
|
|
|
- - build
|
|
|
|
- cephfs
|
|
|
|
- ci
|
|
|
|
- cleanup
|
|
|
|
- deploy
|
|
|
|
- doc
|
|
|
|
- e2e
|
|
|
|
- helm
|
|
|
|
- journal
|
|
|
|
- rbd
|
|
|
|
- rebase
|
|
|
|
- revert
|
|
|
|
- util
|