MCPcopy Create free account

hub / github.com/conventionalcommit/commitlint / functions

Functions525 in github.com/conventionalcommit/commitlint

↓ 1 callersFunctionNewLinterWithParser
NewLinterWithParser returns Linter for given conf and custom parser
config/lint.go:22
↓ 1 callersFunctionRegisterRule
RegisterRule registers a custom rule. Returns an error if a rule with the same name is already registered.
registry/registry.go:19
↓ 1 callersMethodRules
()
registry/registry.go:185
↓ 1 callersFunctionRun
Run runs commitlint cli with os.Args
internal/cmd/cmd.go:12
↓ 1 callersMethodValidate
Validate validates FooterTypeEnumRule
lint/rule/footer_type_enum.go:113
↓ 1 callersMethodValidate
(msg lint.Commit)
lint/rule/length_rules.go:105
↓ 1 callersMethodValidate
(msg lint.Commit)
lint/rule/length_rules.go:117
↓ 1 callersMethodValidate
(msg lint.Commit)
lint/rule/length_rules.go:169
↓ 1 callersMethodValidate
(msg lint.Commit)
lint/rule/length_rules.go:181
↓ 1 callersMethodValidate
(msg lint.Commit)
lint/rule/length_rules.go:207
↓ 1 callersFunctionWriteHooks
WriteHooks write git hooks to the given outDir
internal/hook/hook.go:27
↓ 1 callersFunctionWriteTo
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 callersMethodbySeverity
bySeverity returns all messages with given severity
lint/formatter/default.go:77
↓ 1 callersFunctioncheckFooterValuePrefixes
(invalids *[]string, typ, token, value string, params []*FooterTypeEnumParam)
lint/rule/footer_type_enum.go:140
↓ 1 callersFunctioncleanupMsg
(dirtyMsg string)
internal/cmd/lint.go:125
↓ 1 callersFunctioncompilePatterns
(patterns []string)
lint/linter.go:105
↓ 1 callersFunctionconfigCheck
configCheck is the callback function for check/verify command
internal/cmd/config.go:49
↓ 1 callersFunctionconfigCreate
configCreate is the callback function for create config command
internal/cmd/config.go:12
↓ 1 callersFunctioncreateHooks
(hookBaseDir string, isReplace bool)
internal/cmd/hook.go:44
↓ 1 callersFunctionerrInvalidFlag
(ruleName, flagName string, err error)
lint/rule/rule.go:25
↓ 1 callersFunctionerrMissingArg
(ruleName, argName string)
lint/rule/rule.go:21
↓ 1 callersFunctionerrNeedAtleastOneArg
(ruleName, msg string)
lint/rule/rule.go:17
↓ 1 callersFunctionformFullVersion
()
internal/version.go:50
↓ 1 callersFunctionformMaxLenDesc
(typ string, actualLen, expectedLen int)
lint/rule/rule.go:33
↓ 1 callersFunctionformMaxLineLenDesc
(typ string, expectedLen int)
lint/rule/rule.go:37
↓ 1 callersFunctionformMinLenMsg
(typ string, actualLen, expectedLen int)
lint/rule/rule.go:29
↓ 1 callersFunctionformShortVersion
()
internal/version.go:34
↓ 1 callersMethodformatFailure
(msg string, issues []*lint.Issue)
lint/formatter/default.go:27
↓ 1 callersMethodformatIssue
(issues []*lint.Issue)
lint/formatter/json.go:31
↓ 1 callersFunctiongetCommitMsg
(fileInput string)
internal/cmd/lint.go:98
↓ 1 callersFunctiongetConfig
(confParam string)
internal/cmd/lint.go:83
↓ 1 callersFunctiongetGitHookConfig
(isGlobal bool)
internal/cmd/debug.go:79
↓ 1 callersFunctiongetGitVersion
()
internal/cmd/debug.go:63
↓ 1 callersFunctiongetHookDir
(hookFlag string, isGlobal bool)
internal/cmd/hook.go:65
↓ 1 callersFunctiongetLinter
(confParam string)
internal/cmd/lint.go:64
↓ 1 callersFunctiongetRepoRootDir
()
internal/cmd/hook.go:91
↓ 1 callersFunctiongitRemoveHook
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 callersFunctionhasErrorSeverity
(result *lint.Result)
internal/cmd/lint.go:192
↓ 1 callersFunctionhookCreate
hookCreate is the callback function for create hook command
internal/cmd/hook.go:23
↓ 1 callersFunctioninitHooks
(confPath, hookFlag string, isGlobal, isReplace bool)
internal/cmd/hook.go:31
↓ 1 callersFunctioninitLint
initLint is the callback function for init command
internal/cmd/init.go:9
↓ 1 callersFunctionisConfExists
(err error)
internal/cmd/hook.go:115
↓ 1 callersFunctionisFileExists
(fileName string)
internal/config.go:79
↓ 1 callersMethodisIgnored
isIgnored checks if the first line of the commit message matches any of the configured ignore patterns
lint/linter.go:91
↓ 1 callersFunctionisSeverityValid
(s lint.Severity)
config/config.go:217
↓ 1 callersFunctionlintMsg
lintMsg is the callback function for lint command
internal/cmd/lint.go:23
↓ 1 callersFunctionnewCliApp
newCliApp returns commitlint cli.App
internal/cmd/cmd.go:17
↓ 1 callersFunctionnewConfigCmd
()
internal/cmd/cmd.go:110
↓ 1 callersFunctionnewDebugCmd
()
internal/cmd/cmd.go:230
↓ 1 callersFunctionnewHookCmd
()
internal/cmd/cmd.go:177
↓ 1 callersFunctionnewInitCmd
()
internal/cmd/cmd.go:61
↓ 1 callersFunctionnewLintCmd
()
internal/cmd/cmd.go:36
↓ 1 callersFunctionnewRegistry
()
registry/registry.go:56
↓ 1 callersFunctionnewRemoveCmd
()
internal/cmd/cmd.go:211
↓ 1 callersMethodparserErrorRule
(commitMsg string, err error)
lint/linter.go:144
↓ 1 callersFunctionprintDebug
()
internal/cmd/debug.go:13
↓ 1 callersFunctionprocessParam
(r lint.Rule, val map[interface{}]interface{}, index int)
lint/rule/footer_type_enum.go:63
↓ 1 callersFunctionpromptConfirm
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 callersFunctionreadStdInPipe
()
internal/cmd/lint.go:171
↓ 1 callersFunctionremoveLint
removeLint is the callback function for the uninstall command.
internal/cmd/remove.go:11
↓ 1 callersFunctionrunLint
(confFilePath, fileInput string)
internal/cmd/lint.go:39
↓ 1 callersMethodrunRule
(rule Rule, severity Severity, msg Commit)
lint/linter.go:133
↓ 1 callersFunctionsetBoolArg
(retVal *bool, arg interface{})
lint/rule/rule.go:108
↓ 1 callersFunctionsetGitConf
(hookDir string, isGlobal bool)
internal/cmd/init.go:17
↓ 1 callersFunctionsetIntArg
(retVal *int, arg interface{})
lint/rule/rule.go:117
↓ 1 callersFunctiontoBool
(arg interface{})
lint/rule/rule.go:144
↓ 1 callersFunctiontoInt
(arg interface{})
lint/rule/rule.go:152
↓ 1 callersFunctiontoString
(arg interface{})
lint/rule/rule.go:160
↓ 1 callersFunctiontoStringArr
(arg interface{})
lint/rule/rule.go:168
↓ 1 callersFunctiontrimRightSpace
(s string)
internal/cmd/lint.go:121
↓ 1 callersFunctiontruncate
(maxSize int, input string)
lint/formatter/default.go:91
↓ 1 callersFunctionunsetGitConf
unsetGitConf removes the core.hooksPath entry from git config (local or global).
internal/cmd/remove.go:42
↓ 1 callersMethodwriteFailure
(msg string, issues []*lint.Issue)
lint/formatter/default.go:34
↓ 1 callersMethodwriteIssue
(w *strings.Builder, sign string, issue *lint.Issue)
lint/formatter/default.go:63
↓ 1 callersMethodwriteIssues
(w *strings.Builder, sign, title string, issues []*lint.Issue)
lint/formatter/default.go:52
FunctionBenchmarkParseAndLint
(b *testing.B)
test/lint_bench_test.go:12
FunctionBenchmarkSyntaxAdapter
(b *testing.B)
commit/parser_test.go:127
MethodBody
()
test/helpers_test.go:26
MethodBodyBlankLines
()
commit/parser.go:45
MethodBodyBlankLines
()
test/helpers_test.go:48
MethodDescription
()
test/helpers_test.go:30
MethodErrors
()
internal/cmd/util.go:15
MethodFooter
()
test/helpers_test.go:27
MethodFooterBlankLines
()
commit/parser.go:49
MethodFooterBlankLines
()
test/helpers_test.go:63
MethodGetRule
GetRule returns RuleConfig for given rule name
lint/config.go:65
MethodHasBreakingFooter
()
test/helpers_test.go:39
MethodHasHeaderBang
()
test/helpers_test.go:34
MethodHeader
()
test/helpers_test.go:25
MethodIsBreakingChange
()
test/helpers_test.go:32
FunctionLintMessage
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
MethodMessage
()
test/helpers_test.go:24
MethodName
Name is a unique identifier for formatter
lint/lint.go:37
MethodName
()
lint/rule/leading_blank_rules.go:17
MethodName
()
lint/rule/leading_blank_rules.go:30
MethodName
()
lint/rule/breaking_change_rule.go:19
MethodName
()
lint/rule/header_trim_rule.go:15
MethodName
()
lint/rule/empty_rules.go:19
MethodName
()
lint/rule/empty_rules.go:31
MethodName
()
lint/rule/empty_rules.go:43
← previousnext →201–300 of 525, ranked by callers