regex

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package regex provides a validator that checks if the commit message summary and description match specified regular expressions.

Index

Constants

View Source
const Name = "regex"

Name is the validators name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator using regular expressions.

func NewValidator

func NewValidator(options map[string]string) (*Validator, error)

NewValidator create a new regex validator.

func (*Validator) Validate

func (v *Validator) Validate(commit *object.Commit) gitcc.Result

Validate validates a commit.

Jump to

Keyboard shortcuts

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