Skip to content

Commit 094999a

Browse files
committed
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 <[email protected]>
1 parent b4e2a47 commit 094999a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rules/danglingwhitespace/rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func init() {
1919
validate.RegisterRule(DanglingWhitespace)
2020
}
2121

22+
// ValidateDanglingWhitespace runs Git's check to look for whitespace errors.
2223
func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) {
2324
vr.CommitEntry = c
2425
vr.Msg = "commit does not have any whitespace errors"

0 commit comments

Comments
 (0)