Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit bf9f485

Browse files
committed
MINOR: loosen checking of subject length to 15 characters instead of 20
1 parent 26f637f commit bf9f485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-commit/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func checkSubject(subject string) error {
7575
// Commit subject
7676

7777
subject = strings.Join(parts[1:], " ")
78-
if len(subject) < 20 || len(strings.Split(subject, " ")) < 3 {
78+
if len(subject) < 15 || len(strings.Split(subject, " ")) < 3 {
7979
return fmt.Errorf("Too short or meaningless commit subject '%s'", subject)
8080
}
8181
return nil

0 commit comments

Comments
 (0)