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

Method Apply

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

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 before Validate

(setting RuleSetting)

Source from the content-addressed store, hash-verified

49 // if flags or arguments are invalid or not expected return an error
50 // Apply is called before Validate
51 Apply(setting RuleSetting) error
52
53 // Validate validates the rule for given commit message
54 // if given commit is valid, return true and messages slice are ignored

Callers 2

GetEnabledRulesFunction · 0.65
ValidateFunction · 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

no test coverage detected