config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultIgnore = []string{
	".git/*",
}

DefaultIgnore is the default list of file globs that will be ignored

Functions

This section is empty.

Types

type Config

type Config struct {
	Rules       []*rule.Rule `yaml:"rules"`
	IgnoreFiles []string     `yaml:"ignore_files"`
	// contains filtered or unexported fields
}

Config contains a list of rules

func NewConfig

func NewConfig(filename string, fileGlobs []string) (*Config, error)

NewConfig returns a config from the provided yaml file containing rules

func (*Config) GetFiles

func (c *Config) GetFiles() []string

GetFiles returns files that may be parsed

func (*Config) SetDefaultRules added in v0.1.0

func (c *Config) SetDefaultRules()

SetDefaultRules sets the config Rules to DefaultRules

Jump to

Keyboard shortcuts

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