mirror of
https://github.com/mgechev/revive.git
synced 2024-12-12 10:44:59 +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
|
|
}
|