mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-14 12:36:30 +00:00
c28f7cb29f
Initial part of #435
14 lines
308 B
Go
14 lines
308 B
Go
package lint
|
|
|
|
// FormatterMetadata configuration of a formatter
|
|
type FormatterMetadata struct {
|
|
Name string
|
|
Description string
|
|
Sample string
|
|
}
|
|
|
|
// Formatter defines an interface for failure formatters
|
|
type Formatter interface {
|
|
Format(<-chan Failure, Config) (string, error)
|
|
Name() string
|
|
}
|