Documentation
¶
Overview ¶
The package `validator` provides the validation logic for Git commit messages following the Conventional Commits specifications
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidator ¶ added in v0.1.6
func NewValidator() *validator
The NewValidator() constructor creates and returns an instance of the validator struct
func ValidateMessage ¶
func ValidateMessage(s *parser.CommitMessage) (string, error)
ValidateMessage() validates a Conventional Commit message.
It checks the type, scope and subject of the committ message for validation errors. If any of the validation fails, then throw an error or retturn a message signifying a successfull validation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.