config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutFormatText          = "text"
	OutFormatSimple        = "simple"
	OutFormatGitHubActions = "github-actions"
)

Variables

View Source
var OutFormatsString = strings.Join(OutFormats, ",")

Functions

func CreatePrinter added in v0.1.4

func CreatePrinter(f string) printer.Printer

Types

type Config

type Config struct {
	Rules       []*rule.Rule `yaml:"rules"`
	IgnoreFiles []string     `yaml:"ignore_files"`
}

Config contains a list of rules

func NewConfig

func NewConfig(filename string) (*Config, error)

NewConfig returns a new Config

func (*Config) AddDefaultRules

func (c *Config) AddDefaultRules()

AddDefaultRules adds the config Rules to DefaultRules

Jump to

Keyboard shortcuts

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