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
↓ 141 callers
Method
Error
()
internal/cmd/util.go:7
↓ 43 callers
Function
NewDefault
NewDefault returns default config
config/default.go:56
↓ 43 callers
Method
ParseAndLint
ParseAndLint checks the given commitMsg string against rules
lint/linter.go:50
↓ 37 callers
Method
Issues
Issues returns linter issues
lint/result.go:20
↓ 27 callers
Function
NewIssue
NewIssue returns a new issue
lint/result.go:34
↓ 26 callers
Function
newDefaultLinter
newDefaultLinter creates a linter with default config for testing
test/helpers_test.go:94
↓ 17 callers
Method
RuleName
RuleName returns rule name
lint/result.go:42
↓ 14 callers
Function
applyIntArg
applyIntArg is a shared helper that extracts an int argument from a RuleSetting.
lint/rule/length_rules.go:24
↓ 13 callers
Method
Description
()
commit/commit.go:19
↓ 13 callers
Method
Name
Name returns name of the rule, it should be a unique identifier
lint/lint.go:46
↓ 13 callers
Function
NewLinter
NewLinter returns Linter for given conf using the default parser
config/lint.go:12
↓ 12 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/case_rules.go:44
↓ 12 callers
Function
GetEnabledRules
GetEnabledRules forms Rule object for rules which are enabled in config
config/lint.go:54
↓ 10 callers
Function
Parse
Parse parse given file in confPath, and return Config instance, error if any
config/config.go:22
↓ 10 callers
Method
Severity
Severity returns severity of the Rule Failure
lint/result.go:45
↓ 10 callers
Function
Validate
Validate validates given config instance, it checks the following If formatters, rules are registered/known If arguments to rules are valid If version
config/config.go:70
↓ 10 callers
Method
Validate
(msg lint.Commit)
lint/rule/case_rules.go:48
↓ 9 callers
Method
Body
()
commit/commit.go:15
↓ 9 callers
Method
Type
()
commit/commit.go:17
↓ 9 callers
Function
errInvalidArg
(ruleName string, err error)
lint/rule/rule.go:13
↓ 8 callers
Method
Infos
Infos returns additional infos about the issue
lint/result.go:51
↓ 8 callers
Method
Input
Input returns the input commit message
lint/result.go:17
↓ 8 callers
Function
New
New returns a new Linter instance with given config and rules using the default inspection parser.
lint/linter.go:23
↓ 8 callers
Method
Parse
(msg string)
commit/commit.go:33
↓ 8 callers
Method
String
()
internal/config.go:27
↓ 8 callers
Method
Token
()
commit/commit.go:7
↓ 7 callers
Function
Check
Check returns true when s conforms to the given caseFormat constant. An empty string always returns true (treated as "not present"). Returns false for
internal/casing/casing.go:30
↓ 7 callers
Method
Scope
()
commit/commit.go:18
↓ 6 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/case_rules.go:99
↓ 6 callers
Method
Footer
()
commit/commit.go:16
↓ 6 callers
Method
Header
()
commit/commit.go:14
↓ 6 callers
Function
NewParser
NewParser returns a stateless parser backed by syntax.
commit/parser.go:12
↓ 6 callers
Method
Validate
(msg lint.Commit)
lint/rule/case_rules.go:103
↓ 6 callers
Function
validateMaxLen
(typ string, expectedLen int, toCheck string)
lint/rule/rule.go:72
↓ 6 callers
Function
validateMinLen
(typ string, expectedLen int, toCheck string)
lint/rule/rule.go:62
↓ 5 callers
Method
Apply
(_ lint.RuleSetting)
lint/rule/breaking_change_rule.go:20
↓ 5 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/trailer_rules.go:20
↓ 5 callers
Method
Validate
Validate validates BreakingChangeExclamationMarkRule.
lint/rule/breaking_change_rule.go:23
↓ 5 callers
Function
applyCaseArg
(dst *string, ruleName string, setting lint.RuleSetting)
lint/rule/case_rules.go:29
↓ 5 callers
Function
caseIssue
(field, caseFormat string)
lint/rule/case_rules.go:25
↓ 5 callers
Function
search
(arr []string, toFind string)
lint/rule/rule.go:41
↓ 4 callers
Method
Apply
Apply sets the needed argument for the rule
lint/rule/scope_enum.go:23
↓ 4 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/fullstop_rules.go:30
↓ 4 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:37
↓ 4 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:49
↓ 4 callers
Method
Apply
(_ lint.RuleSetting)
lint/rule/header_trim_rule.go:16
↓ 4 callers
Method
EffectiveIgnorePatterns
EffectiveIgnorePatterns returns the combined list of patterns the linter should use. If DisableDefaultIgnores is true, only user-defined patterns are
lint/config.go:54
↓ 4 callers
Function
GetFormatter
GetFormatter returns the formatter as defined in conf
config/lint.go:40
↓ 4 callers
Method
NoteAt
(index int)
commit/commit.go:28
↓ 4 callers
Method
NoteCount
()
commit/commit.go:27
↓ 4 callers
Method
Validate
Validate validates ScopeEnumRule
lint/rule/scope_enum.go:43
↓ 4 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:53
↓ 4 callers
Method
Validate
(msg lint.Commit)
lint/rule/header_trim_rule.go:17
↓ 4 callers
Method
Validate
(msg lint.Commit)
lint/rule/trailer_rules.go:30
↓ 4 callers
Method
Value
()
commit/commit.go:8
↓ 4 callers
Function
applyStringArg
applyStringArg is a shared helper that extracts a string argument from a RuleSetting.
lint/rule/charset_rules.go:12
↓ 4 callers
Function
setStringArg
(retVal *string, arg interface{})
lint/rule/rule.go:126
↓ 4 callers
Function
setStringArrArg
(retVal *[]string, arg interface{})
lint/rule/rule.go:135
↓ 3 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/case_rules.go:61
↓ 3 callers
Method
Apply
(_ lint.RuleSetting)
lint/rule/leading_blank_rules.go:18
↓ 3 callers
Method
Apply
(_ lint.RuleSetting)
lint/rule/leading_blank_rules.go:31
↓ 3 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/charset_rules.go:23
↓ 3 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/fullstop_rules.go:45
↓ 3 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/fullstop_rules.go:64
↓ 3 callers
Method
Apply
Apply sets the needed argument for the rule
lint/rule/footer_enum.go:23
↓ 3 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:87
↓ 3 callers
Method
Apply
Apply sets the needed argument for the rule
lint/rule/type_enum.go:21
↓ 3 callers
Function
DefaultIgnorePatterns
DefaultIgnorePatterns returns the default list of ignore patterns These patterns match commit messages auto-generated by git commands like merge, reve
config/default.go:18
↓ 3 callers
Method
Format
Format formats the lint.Failure
lint/formatter/default.go:23
↓ 3 callers
Method
Format
Format formats the lint.Result
lint/formatter/json.go:18
↓ 3 callers
Function
Inspect
Inspect exposes recoverable fields alongside all syntax diagnostics. A nil commit means structural recovery was unsafe.
commit/parser.go:26
↓ 3 callers
Method
Message
()
commit/commit.go:13
↓ 3 callers
Method
Notes
()
commit/commit.go:20
↓ 3 callers
Function
Rules
Rules returns all registered rules.
registry/registry.go:40
↓ 3 callers
Method
String
()
lint/lint.go:23
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/case_rules.go:65
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/leading_blank_rules.go:19
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/leading_blank_rules.go:32
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/fullstop_rules.go:34
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/fullstop_rules.go:49
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/fullstop_rules.go:68
↓ 3 callers
Method
Validate
Validate validates FooterEnumRule
lint/rule/footer_enum.go:34
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:41
↓ 3 callers
Method
Validate
(msg lint.Commit)
lint/rule/length_rules.go:91
↓ 3 callers
Function
Version
Version returns short version number of the commitlint
internal/version.go:25
↓ 3 callers
Function
WriteCompactTo
WriteCompactTo writes config in yaml format to given io.Writer. Only settings for enabled rules are written, keeping the output compact.
config/config.go:177
↓ 3 callers
Function
applyFullStopArg
applyFullStopArg extracts a single character string from setting.
lint/rule/fullstop_rules.go:18
↓ 3 callers
Function
hasTrailer
(msg lint.Commit, token string)
lint/rule/trailer_rules.go:62
↓ 2 callers
Method
Apply
Apply calls with arguments and flags for the rule from config file if flags or arguments are invalid or not expected return an error Apply is called b
lint/lint.go:51
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/case_rules.go:82
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/case_rules.go:119
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/charset_rules.go:42
↓ 2 callers
Method
Apply
Apply sets the needed argument for the rule
lint/rule/footer_type_enum.go:32
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:63
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:75
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:125
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:139
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:151
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/length_rules.go:191
↓ 2 callers
Method
Apply
(s lint.RuleSetting)
lint/rule/trailer_rules.go:45
next →
1–100 of 525, ranked by callers