1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00
Files
revive/lint/formatter.go
2025-05-27 07:44:24 +02:00

15 lines
310 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
}