Files
TFLint runs only on files with the following extension:.tf
Configuration
- If the repository does not include
.tflint.hcl, CodeRabbit runs TFLint with its safe defaults. - If the repository does include
.tflint.hcl, CodeRabbit writes and uses a safe override config that enables only the bundledterraformruleset. - A repository
.tflint.hclis not required.
Security policy and restrictions
- CodeRabbit recognizes the following plugin names as approved when inspecting
.tflint.hcl.- terraform β bundled with TFLint (tflint-ruleset-terraform)
- aws β tflint-ruleset-aws
- google β tflint-ruleset-google
- azurerm β tflint-ruleset-azurerm
When we skip TFLint
CodeRabbit skips TFLint when:- TFLint is disabled in your CodeRabbit configuration.
- No
.tffiles are in the pull request. - TFLint is already running in GitHub workflows.