MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / Formatter

Interface Formatter

lint/lint.go:48–54  ·  view source on GitHub ↗

Formatter represent a lint result formatter

Source from the content-addressed store, hash-verified

46
47// Formatter represent a lint result formatter
48type Formatter interface {
49 // Name is a unique identifier for formatter
50 Name() string
51
52 // Format formats the linter result
53 Format(result *Result) (string, error)
54}
55
56// Rule represent a linter rule
57type Rule interface {

Callers 1

runLintFunction · 0.65

Implementers 2

DefaultFormatterformatter/default.go
JSONFormatterformatter/json.go

Calls

no outgoing calls

Tested by

no test coverage detected