mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
15 lines
313 B
Go
15 lines
313 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, RulesConfig) (string, error)
|
|
Name() string
|
|
}
|