-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ece03d7
commit b059df8
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
rules: | ||
- name: "Commit message length" | ||
description: "Ensure commit messages are not too long" | ||
pattern: ".{1,50}" | ||
error_message: "Commit messages should be between 1 and 50 characters long" | ||
|
||
- name: "Capitalized subject" | ||
description: "Ensure commit message subject starts with a capital letter" | ||
pattern: "^[A-Z].*" | ||
error_message: "Commit message subject should start with a capital letter" | ||
|
||
- name: "Imperative mood" | ||
description: "Ensure commit message subject is in imperative mood" | ||
pattern: "(^fix|^update|^add|^remove|^refactor|^implement|^merge|^resolve|^enhance|^correct|^optimize|^adjust|^improve|^change|^test|^doc|^style|^clean)(s|es|ed|ing)?\\b" | ||
error_message: "Commit message subject should use imperative mood" |