Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHubActionLinter ¶
type GitHubActionLinter struct{}
func (*GitHubActionLinter) FindViolations ¶
func (tfl *GitHubActionLinter) FindViolations(content []byte, path string) ([]*ViolationInstance, error)
FindViolations inspects a set of bytes that represent a YAML document that defines a GitHub action workflow looking for steps that use the 'hashicorp/setup-terraform' action.
func (*GitHubActionLinter) Selectors ¶
func (tfl *GitHubActionLinter) Selectors() []string
type Linter ¶
type Linter interface { // Selectors provides a set of file suffixes to search for. '.tf', '.yml', etc. Selectors() []string // FindViolations is the specific linter implementation that is applied to each // file to find any lint violations. FindViolations(content []byte, path string) ([]*ViolationInstance, error) }
Linter defines an interface selecting a set of files to apply lint rules against.
type TerraformLinter ¶
type TerraformLinter struct{}
func (*TerraformLinter) FindViolations ¶
func (tfl *TerraformLinter) FindViolations(content []byte, path string) ([]*ViolationInstance, error)
FindViolations inspects a set of bytes that represent hcl from a terraform configuration file looking for calls to the 'local-exec' provider.
func (*TerraformLinter) Selectors ¶
func (tfl *TerraformLinter) Selectors() []string
type ViolationInstance ¶
ViolationInstance is an object that contains a reference to a location in a file where a lint violation was detected.
Click to show internal directories.
Click to hide internal directories.