mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-26 01:55: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:
parent
b4e2a474d1
commit
094999a80e
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue