Skip to content

shoppingjaws/tflint-ruleset-file-name-is-resource-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TFLint Ruleset File name is resource name

release

Requirements

  • TFLint v0.42+
  • Go v1.22

Installation

You can install the plugin with tflint --init. Declare a config in .tflint.hcl as follows:

plugin "file-name-is-resource-name" {
  enabled = true
  source  = "github.com/shoppingjaws/tflint-ruleset-file-name-is-resource-name"
  version = "0.1.12"
}


rule "file_name_is_resource_name" {
  enabled = true
  variable_file_name_pattern= "^variable.tf$" // optional
  module_file_name_pattern = "^main.tf$" // optional
  locals_file_name_pattern= "^locals.tf$" // optional
  provider_file_name_pattern= "^provider.tf$" // optional
  output_file_name_pattern= "^output.tf$" // optional
  module_file_name_pattern= "^module.tf$" // optional
  data_file_name_pattern= "^data_.*.tf$" // optional
}

Rules

Name Description Severity Enabled Link
file_name_is_resource_name Rule for file name follows resource name ERROR link

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published