FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

chore: update tflint job to be compatible with v0.40.0+ config model

Merged Dmitrii Unterov requested to merge actualize-tflint-setup into master
2 files
+ 17
14
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -204,21 +204,18 @@ tflint:
image:
name: ghcr.io/terraform-linters/tflint:latest
entrypoint: [""]
before_script: |
if [ ! -f .tflint.hcl ]; then
cat > .tflint.hcl <<EOL
plugin "terraform" {
enabled = true
preset = "all"
}
EOL
fi
script: |
tflint --enable-rule terraform_comment_syntax \
--enable-rule terraform_deprecated_index \
--enable-rule terraform_deprecated_interpolation \
--enable-rule terraform_documented_outputs \
--enable-rule terraform_documented_variables \
--enable-rule terraform_empty_list_equality \
--enable-rule terraform_module_pinned_source \
--enable-rule terraform_module_version \
--enable-rule terraform_naming_convention \
--enable-rule terraform_required_providers \
--enable-rule terraform_required_version \
--enable-rule terraform_typed_variables \
--enable-rule terraform_unused_declarations \
--enable-rule terraform_unused_required_providers
tflint --init
tflint --recursive
rules:
- if: $TFLINT_DISABLED
when: never
Loading