1
0
mirror of https://github.com/mgechev/revive.git synced 2025-04-17 11:46:37 +02:00
revive/formatter/formatter.go
2017-08-29 10:47:29 -07:00

16 lines
322 B
Go

package formatter
import "github.com/mgechev/revive/rule"
// 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([]rule.Failure) string
}