Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Rules = func() []tflint.Rule { return slices.Concat( []tflint.Rule{ Wrap(basic.NewTerraformHeredocUsageRule()), Wrap(basic.NewTerraformModuleProviderDeclarationRule()), Wrap(basic.NewTerraformOutputSeparateRule()), Wrap(basic.NewTerraformRequiredProvidersDeclarationRule()), Wrap(basic.NewTerraformRequiredVersionDeclarationRule()), Wrap(basic.NewTerraformSensitiveVariableNoDefaultRule()), Wrap(basic.NewTerraformVariableNullableFalseRule()), Wrap(basic.NewTerraformVariableSeparateRule()), Wrap(azurerm.NewAzurermResourceTagRule()), NewTerraformDotTfRule(), NewModuleSourceRule(), NewProviderVersionRule("modtm", "Azure/modtm", "~> 0.3", []string{ "0.2.999", "1.0.0", }), }, waf.GetRules(), interfaces.Rules, outputs.Rules, ) }()
Functions ¶
Types ¶
type ModuleSourceRule ¶ added in v0.5.0
type ModuleSourceRule struct {
tflint.DefaultRule
}
func NewModuleSourceRule ¶ added in v0.5.0
func NewModuleSourceRule() *ModuleSourceRule
func (*ModuleSourceRule) Check ¶ added in v0.5.0
func (t *ModuleSourceRule) Check(r tflint.Runner) error
func (*ModuleSourceRule) Enabled ¶ added in v0.5.0
func (t *ModuleSourceRule) Enabled() bool
func (*ModuleSourceRule) Link ¶ added in v0.5.0
func (t *ModuleSourceRule) Link() string
func (*ModuleSourceRule) Name ¶ added in v0.5.0
func (t *ModuleSourceRule) Name() string
func (*ModuleSourceRule) Severity ¶ added in v0.5.0
func (t *ModuleSourceRule) Severity() tflint.Severity
type ProviderVersionRule ¶ added in v0.11.0
type ProviderVersionRule struct { tflint.DefaultRule ProviderName string ProviderSource string RecommendedVersionConstraint string VersionsShouldFailed []string }
func NewProviderVersionRule ¶ added in v0.11.0
func NewProviderVersionRule(providerName, providerSource, recommendedVersion string, versionsShouldFailed []string) *ProviderVersionRule
func (*ProviderVersionRule) Check ¶ added in v0.11.0
func (m *ProviderVersionRule) Check(r tflint.Runner) error
func (*ProviderVersionRule) Enabled ¶ added in v0.11.0
func (m *ProviderVersionRule) Enabled() bool
func (*ProviderVersionRule) Name ¶ added in v0.11.0
func (m *ProviderVersionRule) Name() string
func (*ProviderVersionRule) Severity ¶ added in v0.11.0
func (m *ProviderVersionRule) Severity() tflint.Severity
type TerraformDotTfRule ¶
type TerraformDotTfRule struct {
tflint.DefaultRule
}
func NewTerraformDotTfRule ¶
func NewTerraformDotTfRule() *TerraformDotTfRule
func (*TerraformDotTfRule) Enabled ¶
func (t *TerraformDotTfRule) Enabled() bool
func (*TerraformDotTfRule) Link ¶
func (t *TerraformDotTfRule) Link() string
func (*TerraformDotTfRule) Name ¶
func (t *TerraformDotTfRule) Name() string
func (*TerraformDotTfRule) Severity ¶
func (t *TerraformDotTfRule) Severity() tflint.Severity
Click to show internal directories.
Click to hide internal directories.