TrailerExistsRule checks that at least one footer note has a token matching the configured value. This is a generalized version of signed-off-by: any trailer token can be required.
| 40 | // This is a generalized version of signed-off-by: any trailer token can be |
| 41 | // required. |
| 42 | type TrailerExistsRule struct{ Value string } |
| 43 | |
| 44 | func (r *TrailerExistsRule) Name() string { return "trailer-exists" } |
| 45 | func (r *TrailerExistsRule) Apply(s lint.RuleSetting) error { |
nothing calls this directly
no outgoing calls
no test coverage detected