internal

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CommitlintConfigEnv = "COMMITLINT_CONFIG"

Variables

This section is empty.

Functions

func FullVersion

func FullVersion() string

FullVersion returns version number with hash and build time of the commitlint

func Version

func Version() string

Version returns short version number of the commitlint

Types

type ConfigType

type ConfigType byte
const (
	UnknownConfig ConfigType = iota
	DefaultConfig
	EnvConfig
	FileConfig
)

func LookupConfigPath

func LookupConfigPath() (confPath string, typ ConfigType, err error)

LookupConfigPath returns config file path following below order

  1. env path
  2. commitlint.yaml in current directory
  3. use default config

func (ConfigType) String

func (c ConfigType) String() string

Directories

Path Synopsis
Package hook contains git hook related informations
Package hook contains git hook related informations
Package registry contains registered rules and formatters
Package registry contains registered rules and formatters

Jump to

Keyboard shortcuts

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