validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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