Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conventionalcommit/commitlint
/ functions
Functions
525 in github.com/conventionalcommit/commitlint
⨍
Functions
525
◇
Types & classes
63
↓ 1 callers
Function
NewLinterWithParser
NewLinterWithParser returns Linter for given conf and custom parser
config/lint.go:22
↓ 1 callers
Function
RegisterRule
RegisterRule registers a custom rule. Returns an error if a rule with the same name is already registered.
registry/registry.go:19
↓ 1 callers
Method
Rules
()
registry/registry.go:185
↓ 1 callers
Function
Run
Run runs commitlint cli with os.Args
internal/cmd/cmd.go:12
↓ 1 callers
Method
Validate
Validate validates FooterTypeEnumRule
lint/rule/footer_type_enum.go:113
↓ 1 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:105
↓ 1 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:117
↓ 1 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:169
↓ 1 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:181
↓ 1 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:207
↓ 1 callers
Function
WriteHooks
WriteHooks write git hooks to the given outDir
internal/hook/hook.go:27
↓ 1 callers
Function
WriteTo
WriteTo writes config in yaml format to given io.Writer, including all settings and every field even if empty or zero-valued.
config/config.go:164
↓ 1 callers
Method
bySeverity
bySeverity returns all messages with given severity
lint/formatter/default.go:77
↓ 1 callers
Function
checkFooterValuePrefixes
(invalids *[]string, typ, token, value string, params []*FooterTypeEnumParam)
lint/rule/footer_type_enum.go:140
↓ 1 callers
Function
cleanupMsg
(dirtyMsg string)
internal/cmd/lint.go:125
↓ 1 callers
Function
compilePatterns
(patterns []string)
lint/linter.go:105
↓ 1 callers
Function
configCheck
configCheck is the callback function for check/verify command
internal/cmd/config.go:49
↓ 1 callers
Function
configCreate
configCreate is the callback function for create config command
internal/cmd/config.go:12
↓ 1 callers
Function
createHooks
(hookBaseDir string, isReplace bool)
internal/cmd/hook.go:44
↓ 1 callers
Function
errInvalidFlag
(ruleName, flagName string, err error)
lint/rule/rule.go:25
↓ 1 callers
Function
errMissingArg
(ruleName, argName string)
lint/rule/rule.go:21
↓ 1 callers
Function
errNeedAtleastOneArg
(ruleName, msg string)
lint/rule/rule.go:17
↓ 1 callers
Function
formFullVersion
()
internal/version.go:50
↓ 1 callers
Function
formMaxLenDesc
(typ string, actualLen, expectedLen int)
lint/rule/rule.go:33
↓ 1 callers
Function
formMaxLineLenDesc
(typ string, expectedLen int)
lint/rule/rule.go:37
↓ 1 callers
Function
formMinLenMsg
(typ string, actualLen, expectedLen int)
lint/rule/rule.go:29
↓ 1 callers
Function
formShortVersion
()
internal/version.go:34
↓ 1 callers
Method
formatFailure
(msg string, issues []*lint.Issue)
lint/formatter/default.go:27
↓ 1 callers
Method
formatIssue
(issues []*lint.Issue)
lint/formatter/json.go:31
↓ 1 callers
Function
getCommitMsg
(fileInput string)
internal/cmd/lint.go:98
↓ 1 callers
Function
getConfig
(confParam string)
internal/cmd/lint.go:83
↓ 1 callers
Function
getGitHookConfig
(isGlobal bool)
internal/cmd/debug.go:79
↓ 1 callers
Function
getGitVersion
()
internal/cmd/debug.go:63
↓ 1 callers
Function
getHookDir
(hookFlag string, isGlobal bool)
internal/cmd/hook.go:65
↓ 1 callers
Function
getLinter
(confParam string)
internal/cmd/lint.go:64
↓ 1 callers
Function
getRepoRootDir
()
internal/cmd/hook.go:91
↓ 1 callers
Function
gitRemoveHook
gitRemoveHook removes commitlint from git config by unsetting core.hooksPath. It prompts for confirmation before making any changes. Hook files are le
internal/cmd/remove.go:18
↓ 1 callers
Function
hasErrorSeverity
(result *lint.Result)
internal/cmd/lint.go:192
↓ 1 callers
Function
hookCreate
hookCreate is the callback function for create hook command
internal/cmd/hook.go:23
↓ 1 callers
Function
initHooks
(confPath, hookFlag string, isGlobal, isReplace bool)
internal/cmd/hook.go:31
↓ 1 callers
Function
initLint
initLint is the callback function for init command
internal/cmd/init.go:9
↓ 1 callers
Function
isConfExists
(err error)
internal/cmd/hook.go:115
↓ 1 callers
Function
isFileExists
(fileName string)
internal/config.go:79
↓ 1 callers
Method
isIgnored
isIgnored checks if the first line of the commit message matches any of the configured ignore patterns
lint/linter.go:91
↓ 1 callers
Function
isSeverityValid
(s lint.Severity)
config/config.go:217
↓ 1 callers
Function
lintMsg
lintMsg is the callback function for lint command
internal/cmd/lint.go:23
↓ 1 callers
Function
newCliApp
newCliApp returns commitlint cli.App
internal/cmd/cmd.go:17
↓ 1 callers
Function
newConfigCmd
()
internal/cmd/cmd.go:110
↓ 1 callers
Function
newDebugCmd
()
internal/cmd/cmd.go:230
↓ 1 callers
Function
newHookCmd
()
internal/cmd/cmd.go:177
↓ 1 callers
Function
newInitCmd
()
internal/cmd/cmd.go:61
↓ 1 callers
Function
newLintCmd
()
internal/cmd/cmd.go:36
↓ 1 callers
Function
newRegistry
()
registry/registry.go:56
↓ 1 callers
Function
newRemoveCmd
()
internal/cmd/cmd.go:211
↓ 1 callers
Method
parserErrorRule
(commitMsg string, err error)
lint/linter.go:144
↓ 1 callers
Function
printDebug
()
internal/cmd/debug.go:13
↓ 1 callers
Function
processParam
(r lint.Rule, val map[interface{}]interface{}, index int)
lint/rule/footer_type_enum.go:63
↓ 1 callers
Function
promptConfirm
promptConfirm prints prompt and waits for the user to type y/yes or anything else. Returns true only when the user confirms with "y" or "yes" (case-in
internal/cmd/remove.go:56
↓ 1 callers
Function
readStdInPipe
()
internal/cmd/lint.go:171
↓ 1 callers
Function
removeLint
removeLint is the callback function for the uninstall command.
internal/cmd/remove.go:11
↓ 1 callers
Function
runLint
(confFilePath, fileInput string)
internal/cmd/lint.go:39
↓ 1 callers
Method
runRule
(rule Rule, severity Severity, msg Commit)
lint/linter.go:133
↓ 1 callers
Function
setBoolArg
(retVal *bool, arg interface{})
lint/rule/rule.go:108
↓ 1 callers
Function
setGitConf
(hookDir string, isGlobal bool)
internal/cmd/init.go:17
↓ 1 callers
Function
setIntArg
(retVal *int, arg interface{})
lint/rule/rule.go:117
↓ 1 callers
Function
toBool
(arg interface{})
lint/rule/rule.go:144
↓ 1 callers
Function
toInt
(arg interface{})
lint/rule/rule.go:152
↓ 1 callers
Function
toString
(arg interface{})
lint/rule/rule.go:160
↓ 1 callers
Function
toStringArr
(arg interface{})
lint/rule/rule.go:168
↓ 1 callers
Function
trimRightSpace
(s string)
internal/cmd/lint.go:121
↓ 1 callers
Function
truncate
(maxSize int, input string)
lint/formatter/default.go:91
↓ 1 callers
Function
unsetGitConf
unsetGitConf removes the core.hooksPath entry from git config (local or global).
internal/cmd/remove.go:42
↓ 1 callers
Method
writeFailure
(msg string, issues []*lint.Issue)
lint/formatter/default.go:34
↓ 1 callers
Method
writeIssue
(w *strings.Builder, sign string, issue *lint.Issue)
lint/formatter/default.go:63
↓ 1 callers
Method
writeIssues
(w *strings.Builder, sign, title string, issues []*lint.Issue)
lint/formatter/default.go:52
Function
BenchmarkParseAndLint
(b *testing.B)
test/lint_bench_test.go:12
Function
BenchmarkSyntaxAdapter
(b *testing.B)
commit/parser_test.go:127
Method
Body
()
test/helpers_test.go:26
Method
BodyBlankLines
()
commit/parser.go:45
Method
BodyBlankLines
()
test/helpers_test.go:48
Method
Description
()
test/helpers_test.go:30
Method
Errors
()
internal/cmd/util.go:15
Method
Footer
()
test/helpers_test.go:27
Method
FooterBlankLines
()
commit/parser.go:49
Method
FooterBlankLines
()
test/helpers_test.go:63
Method
GetRule
GetRule returns RuleConfig for given rule name
lint/config.go:65
Method
HasBreakingFooter
()
test/helpers_test.go:39
Method
HasHeaderBang
()
test/helpers_test.go:34
Method
Header
()
test/helpers_test.go:25
Method
IsBreakingChange
()
test/helpers_test.go:32
Function
LintMessage
LintMessage lints commitMsg using the default configuration. It is the simplest entry point for programmatic use: no config file is needed. For custo
config/api.go:9
Method
Message
()
test/helpers_test.go:24
Method
Name
Name is a unique identifier for formatter
lint/lint.go:37
Method
Name
()
lint/rule/leading_blank_rules.go:17
Method
Name
()
lint/rule/leading_blank_rules.go:30
Method
Name
()
lint/rule/breaking_change_rule.go:19
Method
Name
()
lint/rule/header_trim_rule.go:15
Method
Name
()
lint/rule/empty_rules.go:19
Method
Name
()
lint/rule/empty_rules.go:31
Method
Name
()
lint/rule/empty_rules.go:43
← previous
next →
201–300 of 525, ranked by callers