body

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package body provides the transport structures used to unmarshal the commit message body configuration from config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	// Mandate stores the transport representation
	// of the body mandate config,
	// i.e. the commit types for which the body is mandatory.
	Mandate mandate.Mandate `yaml:"mandate,omitempty"`

	// Length stores the transport representation
	// of the allowed body length interval.
	Length value.Range `yaml:"length,omitempty"`
}

Body is the transport representation of the commit message body config.

Body groups the body mandate and the allowed body length and converts them into the domain body config consumed by the linter.

func (Body) Config

func (c Body) Config() body.Config

Config converts the transport representation into domain body config.

Directories

Path Synopsis
Package mandate provides the transport structures used to unmarshal the commit message body mandate configuration from config files, describing the commit types for which the commit message body is mandatory.
Package mandate provides the transport structures used to unmarshal the commit message body mandate configuration from config files, describing the commit types for which the commit message body is mandatory.

Jump to

Keyboard shortcuts

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