From 094999a80ea35ee5ea3f807231817eb3341731e1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 27 Apr 2017 10:37:17 -0700 Subject: [PATCH] rules/danglingwhitespace/rule.go: Comment for ValidateDanglingWhitespace Avoid golint's: rules/danglingwhitespace/rule.go:22:1: exported function ValidateDanglingWhitespace should have comment or be unexported Signed-off-by: W. Trevor King --- rules/danglingwhitespace/rule.go | 1 + 1 file changed, 1 insertion(+) 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"