rules

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRules = append(manualDefaultRules, modelRules...)

DefaultRules is rules by default

Functions

func CheckRuleNames added in v0.13.0

func CheckRuleNames(ruleNames []string, c *tflint.Config) error

CheckRuleNames returns map of rules indexed by name

Types

type Rule

type Rule interface {
	Name() string
	Enabled() bool
	Check(runner *tflint.Runner) error
}

Rule is an implementation that receives a Runner and inspects for resources and modules.

func NewRules

func NewRules(c *tflint.Config) ([]Rule, error)

NewRules returns rules according to configuration

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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