registry

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package registry contains registered rules and formatters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFormatter

func GetFormatter(name string) (lint.Formatter, bool)

GetFormatter returns Formatter with given name

func GetRule

func GetRule(name string) (lint.Rule, bool)

GetRule returns Rule with given name

func RegisterFormatter

func RegisterFormatter(format lint.Formatter) error

RegisterFormatter registers a custom formatter if formatter already exists, returns error

func RegisterRule

func RegisterRule(r lint.Rule) error

RegisterRule registers a custom rule if rule already exists, returns error

func Rules

func Rules() []lint.Rule

Rules returns all registered rules

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL