rules

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MPL-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.8.5

func CheckRuleNames(ruleNames []string) 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

NewRules returns rules according to configuration

type RuleSet added in v0.8.5

type RuleSet struct{}

RuleSet is a pseudo RuleSet to handle core rules like plugin

func (*RuleSet) RuleNames added in v0.8.5

func (r *RuleSet) RuleNames() ([]string, error)

RuleNames is a list of rule names provided by the plugin.

func (*RuleSet) RuleSetName added in v0.8.5

func (r *RuleSet) RuleSetName() (string, error)

RuleSetName is the name of the rule set.

func (*RuleSet) RuleSetVersion added in v0.8.5

func (r *RuleSet) RuleSetVersion() (string, error)

RuleSetVersion is the version of the plugin.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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