Documentation ¶
Index ¶
- Variables
- func FilterInitialCommit(_ commitparser.CommitMessage, commit *object.Commit, err error) error
- func RuleConventionalCommit(msg commitparser.CommitMessage, commit *object.Commit) error
- func RuleConventionalSubject(msg commitparser.CommitMessage, _ *object.Commit) error
- type FilterFunc
- type Filters
- type Linter
- type RuleFunc
- type Rules
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSubject = errors.New("invalid subject in commit message") ErrInvalidCharacter = errors.New("invalid character in commit message") )
Functions ¶
func FilterInitialCommit ¶
func FilterInitialCommit(_ commitparser.CommitMessage, commit *object.Commit, err error) error
func RuleConventionalCommit ¶
func RuleConventionalCommit(msg commitparser.CommitMessage, commit *object.Commit) error
func RuleConventionalSubject ¶
func RuleConventionalSubject(msg commitparser.CommitMessage, _ *object.Commit) error
RuleConventionalSubject verifies that the commit message's subject is not empty and does not start with upper case.
Types ¶
type FilterFunc ¶
type FilterFunc func(message commitparser.CommitMessage, commit *object.Commit, err error) error
type Filters ¶
type Filters []FilterFunc
func (Filters) Filter ¶
func (filters Filters) Filter(msg commitparser.CommitMessage, commit *object.Commit, err error) error
type RuleFunc ¶
type RuleFunc func(message commitparser.CommitMessage, commit *object.Commit) error
Click to show internal directories.
Click to hide internal directories.