conventionalcommits

package
v0.0.0-...-ea07d1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: EUPL-1.2 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxHeaderLength = 72
)

Variables

View Source
var (
	ErrInvalidSubject   = errors.New("invalid subject in commit message")
	ErrInvalidCharacter = errors.New("invalid character in commit message")
	ErrInvalidType      = errors.New("invalid type in commit message")
	ErrInvalidScope     = errors.New("invalid scope in commit message")
)

Functions

This section is empty.

Types

type Settings

type Settings struct {
	MaxHeaderLength int
}

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func New

func New(s Settings) *Validator

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL