1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2025-06-27 04:48:30 +00:00

*: fix typos and stuff

because that's what I do

Signed-off-by: Jonathan Boulle <jon.boulle@coreos.com>
This commit is contained in:
Jonathan Boulle 2016-04-05 16:06:48 +02:00 committed by Vincent Batts
parent 769b4028a4
commit 41062f1be2
3 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@ var (
}
)
// ValidateDCO is the ValidateRule for a git commit
// ValidateDCO checks that the commit has been signed off, per the DCO process
func ValidateDCO(c git.CommitEntry) (vr validate.Result) {
vr.CommitEntry = c
if len(strings.Split(c["parent"], " ")) > 1 {

View file

@ -19,7 +19,7 @@ func init() {
}
// ValidateShortSubject checks that the commit's subject is strictly less than
// 90 characters (preferrably not more than 72 chars).
// 90 characters (preferably not more than 72 chars).
func ValidateShortSubject(c git.CommitEntry) (vr validate.Result) {
if len(c["subject"]) >= 90 {
vr.Pass = false
@ -28,7 +28,7 @@ func ValidateShortSubject(c git.CommitEntry) (vr validate.Result) {
}
vr.Pass = true
if len(c["subject"]) > 72 {
vr.Msg = "commit subject is not more than 90 characters, but is still more than 72 chars"
vr.Msg = "commit subject is under 90 characters, but is still more than 72 chars"
} else {
vr.Msg = "commit subject is 72 characters or less! *yay*"
}