MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / Name

Method Name

lint/lint.go:46–46  ·  view source on GitHub ↗

Name returns name of the rule, it should be a unique identifier

()

Source from the content-addressed store, hash-verified

44type Rule interface {
45 // Name returns name of the rule, it should be a unique identifier
46 Name() string
47
48 // Apply calls with arguments and flags for the rule from config file
49 // if flags or arguments are invalid or not expected return an error

Callers 13

TestRegisterCustomRuleFunction · 0.65
RegisterRuleMethod · 0.65
RegisterFormatterMethod · 0.65
LintMethod · 0.65
runRuleMethod · 0.65
processParamFunction · 0.65
TestConfig_GetFormatterFunction · 0.65
GetEnabledRulesFunction · 0.65
NewDefaultFunction · 0.65

Implementers 15

TypeCaseRulelint/rule/case_rules.go
ScopeCaseRulelint/rule/case_rules.go
DescriptionCaseRulelint/rule/case_rules.go
BodyCaseRulelint/rule/case_rules.go
HeaderCaseRulelint/rule/case_rules.go
BodyLeadingBlankRulelint/rule/leading_blank_rules.go
FooterLeadingBlankRulelint/rule/leading_blank_rules.go
TypeCharsetRulelint/rule/charset_rules.go
ScopeCharsetRulelint/rule/charset_rules.go
ScopeEnumRulelint/rule/scope_enum.go
BreakingChangeExclamationMarkRulelint/rule/breaking_change_rule.go
FooterTypeEnumRulelint/rule/footer_type_enum.go

Calls

no outgoing calls

Tested by 5

TestRegisterCustomRuleFunction · 0.52
TestConfig_GetFormatterFunction · 0.52