RegisterFormatter registers a custom formatter. Returns an error if a formatter with the same name is already registered.
(format lint.Formatter)
| 23 | // RegisterFormatter registers a custom formatter. |
| 24 | // Returns an error if a formatter with the same name is already registered. |
| 25 | func 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. |
| 30 | func GetRule(name string) (lint.Rule, bool) { |
nothing calls this directly
no test coverage detected