Documentation
¶
Overview ¶
Package registry holds the global registry of rules and formatters. External packages can call RegisterRule and RegisterFormatter to extend commitlint with custom rules or formatters before building a linter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFormatter ¶
GetFormatter returns the Formatter registered under name, and whether it was found.
func RegisterFormatter ¶
RegisterFormatter registers a custom formatter. Returns an error if a formatter with the same name is already registered.
func RegisterRule ¶
RegisterRule registers a custom rule. Returns an error if a rule with the same name is already registered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.