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

Function RegisterFormatter

registry/registry.go:25–27  ·  view source on GitHub ↗

RegisterFormatter registers a custom formatter. Returns an error if a formatter with the same name is already registered.

(format lint.Formatter)

Source from the content-addressed store, hash-verified

23// RegisterFormatter registers a custom formatter.
24// Returns an error if a formatter with the same name is already registered.
25func RegisterFormatter(format lint.Formatter) error {
26 return globalRegistry.RegisterFormatter(format)
27}
28
29// GetRule returns the Rule registered under name, and whether it was found.
30func GetRule(name string) (lint.Rule, bool) {

Callers

nothing calls this directly

Calls 1

RegisterFormatterMethod · 0.80

Tested by

no test coverage detected