Documentation
¶
Overview ¶
Package commit provides linters that validate git commit messages against the configured rules by aggregating issues from sub-linters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
// contains filtered or unexported fields
}
Commit represents a linter that validates a single git commit against the configured commit message rules.
type Commits ¶
type Commits struct {
// contains filtered or unexported fields
}
Commits represents a linter that validates a collection of git commits against the configured commit message rules.
func NewCommits ¶
NewCommits creates a new Commits linter with the provided git commits and lint configuration.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package message provides a linter that validates a complete commit message by aggregating issues from its task, subject, and body sub-linters.
|
Package message provides a linter that validates a complete commit message by aggregating issues from its task, subject, and body sub-linters. |
|
body
Package body provides a linter that validates the commit message body against the configured length interval.
|
Package body provides a linter that validates the commit message body against the configured length interval. |
|
subject
Package subject provides a linter that validates a commit message subject by aggregating issues from its type, scope, and description sub-linters.
|
Package subject provides a linter that validates a commit message subject by aggregating issues from its type, scope, and description sub-linters. |
|
subject/description
Package description provides a linter that validates the length of the commit message subject description against the configured interval.
|
Package description provides a linter that validates the length of the commit message subject description against the configured interval. |
|
task
Package task provides a linter that validates the task identifier in a commit message against the configured pattern.
|
Package task provides a linter that validates the task identifier in a commit message against the configured pattern. |
|
Package scope provides a linter for validating commit scope against the configured pattern.
|
Package scope provides a linter for validating commit scope against the configured pattern. |
|
Package types provides a linter for validating commit types against the configured allowed types.
|
Package types provides a linter for validating commit types against the configured allowed types. |
Click to show internal directories.
Click to hide internal directories.