Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Rules []*rule.Rule `yaml:"rules"`
IgnoreFiles []string `yaml:"ignore_files"`
SuccessExitMessage *string `yaml:"success_exit_message"`
IncludeNote bool `yaml:"include_note"`
ExcludeCategories []string `yaml:"exclude_categories"`
}
Config contains a list of rules
func (*Config) ConfigureRules ¶
ConfigureRules adds the config Rules to DefaultRules Configure RegExps for all rules Configure IncludeNote for all rules Filter out any rules that fall under ExcludeCategories
func (*Config) GetSuccessExitMessage ¶
GetSuccessExitMessage returns the message to be shows on a successful exit as defined in the config, or a default message.
func (*Config) RemoveRule ¶
Remove rule at index i in c.Rules while maintaining order
Click to show internal directories.
Click to hide internal directories.