1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2024-11-29 11:35:40 +00:00

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 <wking@tremily.us>
This commit is contained in:
W. Trevor King 2017-04-27 10:37:17 -07:00
parent b4e2a474d1
commit 094999a80e

View file

@ -19,6 +19,7 @@ func init() {
validate.RegisterRule(DanglingWhitespace) validate.RegisterRule(DanglingWhitespace)
} }
// ValidateDanglingWhitespace runs Git's check to look for whitespace errors.
func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) { func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) {
vr.CommitEntry = c vr.CommitEntry = c
vr.Msg = "commit does not have any whitespace errors" vr.Msg = "commit does not have any whitespace errors"