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

Method Validate

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

Validate validates the rule for given commit message if given commit is valid, return true and messages slice are ignored if invalid, return a error messages with false

(msg Commit)

Source from the content-addressed store, hash-verified

54 // if given commit is valid, return true and messages slice are ignored
55 // if invalid, return a error messages with false
56 Validate(msg Commit) (issue *Issue, isValid bool)
57}

Callers 2

runRuleMethod · 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