MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / Apply

Method Apply

lint/lint.go:64–64  ·  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

62 // if flags or arguments are invalid or not expected return an error
63 // Apply is called before Validate
64 Apply(setting RuleSetting) error
65
66 // Validate validates the rule for given commit message
67 // if given commit is valid, return true and messages slice are ignored

Callers 2

GetEnabledRulesFunction · 0.65
ValidateFunction · 0.65

Implementers 15

TypeCaseRulerule/case_rules.go
ScopeCaseRulerule/case_rules.go
DescriptionCaseRulerule/case_rules.go
BodyCaseRulerule/case_rules.go
HeaderCaseRulerule/case_rules.go
BodyLeadingBlankRulerule/leading_blank_rules.go
FooterLeadingBlankRulerule/leading_blank_rules.go
TypeCharsetRulerule/charset_rules.go
ScopeCharsetRulerule/charset_rules.go
ScopeEnumRulerule/scope_enum.go
BreakingChangeExclamationMarkRulerule/breaking_change_rule.go
FooterTypeEnumRulerule/footer_type_enum.go

Calls

no outgoing calls

Tested by

no test coverage detected