diff --git a/rules/danglingwhitespace/rule.go b/rules/danglingwhitespace/rule.go index 122c746..14ad034 100644 --- a/rules/danglingwhitespace/rule.go +++ b/rules/danglingwhitespace/rule.go @@ -19,6 +19,7 @@ func init() { validate.RegisterRule(DanglingWhitespace) } +// ValidateDanglingWhitespace runs Git's check to look for whitespace errors. func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) { vr.CommitEntry = c vr.Msg = "commit does not have any whitespace errors"