1
0
mirror of https://github.com/mgechev/revive.git synced 2024-12-02 09:02:23 +02:00
revive/lint/formatter.go

15 lines
308 B
Go
Raw Normal View History

2018-01-25 01:44:03 +02:00
package lint
2017-07-04 19:04:23 +02:00
2017-08-28 01:57:16 +02:00
// FormatterMetadata configuration of a formatter
2017-07-04 19:04:23 +02:00
type FormatterMetadata struct {
Name string
Description string
Sample string
}
2017-08-28 01:57:16 +02:00
// Formatter defines an interface for failure formatters
2017-07-04 19:04:23 +02:00
type Formatter interface {
Format(<-chan Failure, Config) (string, error)
2018-01-28 02:22:17 +02:00
Name() string
2017-07-04 19:04:23 +02:00
}