FAQ | This is a LIVE service | Changelog

Skip to content
Commits on Source (2)
......@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [3.8.1] - 2024-04-08
### Fixed
- `terraform-pipeline.yml`: `tflint` job updated and now compatible with `tflint` v0.40.0+
## [3.8.0] - 2024-03-26
### Changed
......
......@@ -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
......