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
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
- env path
- commitlint.yaml in current directory
- 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 |
Click to show internal directories.
Click to hide internal directories.