internal

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 6 Imported by: 0

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 cmd contains commitlint cli
Package cmd contains commitlint cli
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