MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / Formatter

Interface Formatter

lint/lint.go:35–41  ·  view source on GitHub ↗

Formatter represent a lint result formatter

Source from the content-addressed store, hash-verified

33
34// Formatter represent a lint result formatter
35type Formatter interface {
36 // Name is a unique identifier for formatter
37 Name() string
38
39 // Format formats the linter result
40 Format(result *Result) (string, error)
41}
42
43// Rule represent a linter rule
44type Rule interface {

Callers 2

runLintFunction · 0.65

Implementers 2

DefaultFormatterlint/formatter/default.go
JSONFormatterlint/formatter/json.go

Calls

no outgoing calls

Tested by

no test coverage detected