config

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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) AddDefaultRules

func (c *Config) AddDefaultRules()

func (*Config) GetFiles

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

Jump to

Keyboard shortcuts

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