1
0
mirror of https://github.com/mgechev/revive.git synced 2025-03-19 21:07:46 +02:00
revive/linter/formatter.go
2018-01-24 15:41:40 -08:00

14 lines
291 B
Go

package linter
// 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, RulesConfig) string
}