TypeCaseRule validates that commit type matches a given case format. Argument: one of the casing.* constants (e.g. casing.Lower).
| 39 | // TypeCaseRule validates that commit type matches a given case format. |
| 40 | // Argument: one of the casing.* constants (e.g. casing.Lower). |
| 41 | type TypeCaseRule struct{ Case string } |
| 42 | |
| 43 | func (r *TypeCaseRule) Name() string { return "type-case" } |
| 44 | func (r *TypeCaseRule) Apply(s lint.RuleSetting) error { |
nothing calls this directly
no outgoing calls
no test coverage detected