Documentation
¶
Index ¶
- Constants
- Variables
- type Settings
- type Validator
- func (v *Validator) Validate(msg commitparser.CommitMessage, commit *object.Commit) error
- func (v *Validator) ValidateScope(msg commitparser.CommitMessage, _ *object.Commit) error
- func (v *Validator) ValidateSubject(msg commitparser.CommitMessage, _ *object.Commit) error
- func (v *Validator) ValidateType(msg commitparser.CommitMessage, _ *object.Commit) error
Constants ¶
View Source
const (
DefaultMaxHeaderLength = 72
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) Validate ¶
func (v *Validator) Validate(msg commitparser.CommitMessage, commit *object.Commit) error
func (*Validator) ValidateScope ¶
func (v *Validator) ValidateScope(msg commitparser.CommitMessage, _ *object.Commit) error
func (*Validator) ValidateSubject ¶
func (v *Validator) ValidateSubject(msg commitparser.CommitMessage, _ *object.Commit) error
ValidateSubject validates that the commit message's subject is not empty and does not start with upper case.
func (*Validator) ValidateType ¶
func (v *Validator) ValidateType(msg commitparser.CommitMessage, _ *object.Commit) error
Click to show internal directories.
Click to hide internal directories.