# terraform-linters/tflint

A Pluggable Terraform Linter

Repository: https://github.com/terraform-linters/tflint
Canonical: https://ross.abutalabs.com/products/tflint
Language: Go
License: MPL-2.0
License Family: copyleft
Topics: terraform, tflint
Last push: 2026-08-26T00:43:56+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 3604, "days_push": 8, "days_rel": 47, "gap_med": 45.5, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5796, forks 406 (observed 2026-08-28T04:09:29.689326+00:00)

## What it is
TFLint is a pluggable linter for Terraform that finds possible errors, deprecated syntax, and unused declarations, and enforces best practices and naming conventions. It works as a framework where provider-specific rules (AWS, Azure, GCP) are supplied via plugins.

## Use cases
- lint terraform code for errors before apply
- catch invalid aws instance types in terraform
- enforce naming conventions in terraform modules
- warn about deprecated terraform syntax
- find unused declarations in terraform files
- add terraform linting to ci pipeline

## When to choose
- you write or review Terraform and want static analysis beyond terraform validate
- you need provider-aware checks for AWS, Azure, or GCP resources
- you want to enforce team conventions via custom rules or plugins

## When to avoid
- you use non-Terraform IaC tools like Pulumi or CloudFormation
- you only need basic formatting (terraform fmt covers that)
- you need policy-as-code across multiple IaC tools (consider OPA/Sentinel)

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, developer-tools, ci-cd, infrastructure-as-code, plugin-system
- domain: infrastructure-as-code, developer-tools, cloud-computing
- platform: windows, cli, go
- tags: terraform, static-analysis, iac, linting, cloud-providers, devops, linux, macos, docker

## Member repositories
- terraform-linters/tflint (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:29.689326+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:52:47.695350+00:00, confidence not recorded.
  - readme: https://github.com/terraform-linters/tflint (fetched 2026-08-28T04:09:29.689326+00:00, sha e94ffe772066)
- Data as of 2026-08-30T08:39:29.467469+00:00.
