mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
4f63f283c4
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
15 lines
308 B
Go
15 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
|
|
}
|