terraform-linters/tflint-ruleset-terraform

TFLint ruleset for Terraform Language

105

stars

261

commits

Go

primary language

Sep 9, 2026

updated

terraform
tflint
tflint-ruleset

README

TFLint Ruleset for Terraform Language

Build Status GitHub release License: MPL 2.0

TFLint ruleset plugin for Terraform Language

This ruleset focus on possible errors and best practices about Terraform Language.

Requirements

  • TFLint v0.46+
  • Go v1.26

Installation

This ruleset is built into TFLint, so you usually don't need to worry about how to install it. You can check the built-in version with tflint -v:

$ tflint -v
TFLint version 0.52.0
+ ruleset.terraform (0.8.0-bundled)

If you want to use a version different from the built-in version, you can declare plugin in .tflint.hcl as follows and install it with tflint --init:

plugin "terraform" {
    enabled = true
    version = "0.15.0"
    source  = "github.com/terraform-linters/tflint-ruleset-terraform"
}

For more configuration about the plugin, see Plugin Configuration.

Rules

See Rules.

Building the plugin

Clone the repository locally and run the following command:

$ make

You can easily install the built plugin with the following:

$ make install

Note that if you install the plugin with make install, you must omit the version and source attributes in .tflint.hcl:

plugin "terraform" {
    enabled = true
}

Contributors

dependabot[bot]

148 commits

wata727

85 commits

bendrucker

14 commits

rdimartino

2 commits

terraform-linters/tflint-ruleset-terraform

TFLint ruleset for Terraform Language

105

stars

261

commits

Go

primary language

Sep 9, 2026

updated

terraform
tflint
tflint-ruleset

README

TFLint Ruleset for Terraform Language

Build Status GitHub release License: MPL 2.0

TFLint ruleset plugin for Terraform Language

This ruleset focus on possible errors and best practices about Terraform Language.

Requirements

  • TFLint v0.46+
  • Go v1.26

Installation

This ruleset is built into TFLint, so you usually don't need to worry about how to install it. You can check the built-in version with tflint -v:

$ tflint -v
TFLint version 0.52.0
+ ruleset.terraform (0.8.0-bundled)

If you want to use a version different from the built-in version, you can declare plugin in .tflint.hcl as follows and install it with tflint --init:

plugin "terraform" {
    enabled = true
    version = "0.15.0"
    source  = "github.com/terraform-linters/tflint-ruleset-terraform"
}

For more configuration about the plugin, see Plugin Configuration.

Rules

See Rules.

Building the plugin

Clone the repository locally and run the following command:

$ make

You can easily install the built plugin with the following:

$ make install

Note that if you install the plugin with make install, you must omit the version and source attributes in .tflint.hcl:

plugin "terraform" {
    enabled = true
}

Contributors

dependabot[bot]

148 commits

wata727

85 commits

bendrucker

14 commits

rdimartino

2 commits

Languages

Go

99.9%