types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types provides the configuration of the commit types allowed during a git lint run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config represents the configuration of the commit types.

func NewConfig

func NewConfig(types value.Strings) Config

NewConfig creates a new types config with the provided types value.

func (Config) List

func (c Config) List() value.Strings

List returns the commit types with their issue type levels.

func (Config) Validate added in v0.1.2

func (c Config) Validate() error

Validate checks the commit types configuration for correctness.

Jump to

Keyboard shortcuts

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