FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 93a84229 authored by Roy Harrington's avatar Roy Harrington
Browse files

Merge branch 'actualize-tflint-setup' into 'master'

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

See merge request !82
parents 3fba26d2 353a4068
No related branches found
Tags v3.8.1
1 merge request!82chore: update tflint job to be compatible with v0.40.0+ config model
...@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. ...@@ -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/), 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). 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 ## [3.8.0] - 2024-03-26
### Changed ### Changed
......
...@@ -204,21 +204,18 @@ tflint: ...@@ -204,21 +204,18 @@ tflint:
image: image:
name: ghcr.io/terraform-linters/tflint:latest name: ghcr.io/terraform-linters/tflint:latest
entrypoint: [""] entrypoint: [""]
before_script: |
if [ ! -f .tflint.hcl ]; then
cat > .tflint.hcl <<EOL
plugin "terraform" {
enabled = true
preset = "all"
}
EOL
fi
script: | script: |
tflint --enable-rule terraform_comment_syntax \ tflint --init
--enable-rule terraform_deprecated_index \ tflint --recursive
--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
rules: rules:
- if: $TFLINT_DISABLED - if: $TFLINT_DISABLED
when: never when: never
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment