Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllRulesV1Beta1 ¶
GetAllRulesV1Beta1 gets all known rules.
Should only be used for printing.
Types ¶
type Config ¶
type Config struct { // Rules are the rules to run. // // Rules will be sorted by first categories, then id when Configs are // created from this package, i.e. created wth ConfigBuilder.NewConfig. Rules []Rule IgnoreIDToRootPaths map[string]map[string]struct{} IgnoreRootPaths map[string]struct{} IgnoreUnstablePackages bool }
Config is the check config.
func NewConfigV1 ¶
func NewConfigV1(externalConfig ExternalConfigV1) (*Config, error)
NewConfigV1 returns a new Config.
func NewConfigV1Beta1 ¶
func NewConfigV1Beta1(externalConfig ExternalConfigV1Beta1) (*Config, error)
NewConfigV1Beta1 returns a new Config.
type ExternalConfigV1 ¶
type ExternalConfigV1 struct { Use []string `json:"use,omitempty" yaml:"use,omitempty"` Except []string `json:"except,omitempty" yaml:"except,omitempty"` // IgnoreRootPaths Ignore []string `json:"ignore,omitempty" yaml:"ignore,omitempty"` // IgnoreIDOrCategoryToRootPaths IgnoreOnly map[string][]string `json:"ignore_only,omitempty" yaml:"ignore_only,omitempty"` IgnoreUnstablePackages bool `json:"ignore_unstable_packages,omitempty" yaml:"ignore_unstable_packages,omitempty"` }
ExternalConfigV1 is an external config.
type ExternalConfigV1Beta1 ¶
type ExternalConfigV1Beta1 struct { Use []string `json:"use,omitempty" yaml:"use,omitempty"` Except []string `json:"except,omitempty" yaml:"except,omitempty"` // IgnoreRootPaths Ignore []string `json:"ignore,omitempty" yaml:"ignore,omitempty"` // IgnoreIDOrCategoryToRootPaths IgnoreOnly map[string][]string `json:"ignore_only,omitempty" yaml:"ignore_only,omitempty"` IgnoreUnstablePackages bool `json:"ignore_unstable_packages,omitempty" yaml:"ignore_unstable_packages,omitempty"` }
ExternalConfigV1Beta1 is an external config.
Click to show internal directories.
Click to hide internal directories.