mirror of
https://github.com/mgechev/revive.git
synced 2025-04-17 11:46:37 +02:00
16 lines
322 B
Go
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
|
|
}
|