mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-29 06:49:05 +08:00
13 lines
334 B
Go
13 lines
334 B
Go
package check
|
|
|
|
// Check describes what methods various checks (gofmt, go lint, etc.)
|
|
// should implement
|
|
type Check interface {
|
|
Name() string
|
|
Description() string
|
|
Weight() float64
|
|
// Percentage returns the passing percentage of the check,
|
|
// as well as a map of filename to output
|
|
Percentage() (float64, []FileSummary, error)
|
|
}
|