Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
func (*Linter) LintCommitMessage ¶
LintCommitMessage lints a single commit message from a string
func (*Linter) LintCommitMessageFile ¶
LintCommitMessageFile lints a commit message from a file path
func (*Linter) LintCommits ¶
LintCommits lints the commit messages in the given range and returns an error if any commit fails the linting rules. to use in cli, run `git-commit-linter --config=config.yaml --check="HEAD~5..HEAD"` (checks last 5 commits)
Click to show internal directories.
Click to hide internal directories.