mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 00:29:33 +01:00
4f63f283c4
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
14 lines
308 B
Go
Vendored
14 lines
308 B
Go
Vendored
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
|
|
}
|