Documentation
¶
Overview ¶
Package simpletag implements a simple tag validator.
Index ¶
Constants ¶
View Source
const Name = "simpletag"
Name is the validators name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct{}
Validator checks if the commit message summary starts with a tag in square brackets followed by a description. The tag should be either - a single '*' or - completely lowercase letters or numbers, at least 2 characters long, other allowed characters are: '|', '-' and spaces. The tag can also contain multiple categories separated by '|', for example: [feat|fix]. The description should start with an uppercase letter or number, should be not to short and should not end with a punctuation.
func NewValidator ¶
NewValidator create a new simpletag validator.
Click to show internal directories.
Click to hide internal directories.