Skip to content

Releases: terraform-linters/tflint

v0.40.1

17 Sep 13:48
Compare
Choose a tag to compare

0.40.1 (2022-09-17)

BugFixes

  • #1514: Ignore default preset by disabled_by_default
  • #1516: Prefer --only option over other rules config (@wata727)

Chores

  • #1509: Remove unused functions (@wata727)
  • #1511: build(deps): Bump github.com/google/go-cmp from 0.5.8 to 0.5.9
  • #1512: build(deps): Bump sigstore/cosign-installer from 2.5.1 to 2.6.0

v0.40.0

07 Sep 17:00
Compare
Choose a tag to compare

0.40.0 (2022-09-08)

This release contains major changes to the plugin system. All plugins must be built with tflint-plugin-sdk v0.12.0+ to support this version. See also https://github.com/terraform-linters/tflint-plugin-sdk/releases/tag/v0.12.0

Starting with this version, the built-in rules for the Terraform Language have been cut out into the tflint-ruleset-terraform plugin. Since the plugin is bundled with the TFLint binary, you will still be able to use the rules as before. However, be aware that some default behavior has changed.

GPG key ID: 8CE69160EB3F2FE9

Breaking Changes

  • #1470: Remove --loglevel CLI flag (@wata727)
  • #1496: plugin: Switch internal Terraform rules to the bundled plugin (@wata727)
    • Rules for the Terraform Language have been cut out into a plugin, allowing you to enable or disable rules in bulk. Just declare the plugin block in .tflint.hcl like any other plugin.
    • The following rules are newly enabled by default. To keep the same behavior as before, these rules should be disabled.
      • terraform_deprecated_index
      • terraform_required_providers
      • terraform_required_version
      • terraform_typed_variables
      • terraform_unused_declarations
    • See also tflint-ruleset-terraform documentation for plugin configuration.

Enhancements

  • #1480: plugin: Add support for GetModulePath API (@wata727)
  • #1481: plugin: Make GetRuleConfigContent doesn't return an error even if config not found (@wata727)
  • #1482: formatter(compact): print hcl.Diagnostics errors in compact format (@bendrucker)
  • #1492: annotations: allow ignoring multiple rules (@bendrucker)

BugFixes

  • #1501: plugin: Fix an error when evaluating sensitive values (@wata727)

Chores

  • #1483: build(deps): Bump github.com/mattn/go-colorable from 0.1.12 to 0.1.13
  • #1484: build(deps): Bump alpine from 3.16.1 to 3.16.2
  • #1485: build: Improve Go workflows (@wata727)
  • #1487: Revert "Add a notice about verification of keyless signing" (@wata727)
  • #1489: build(deps): Bump github.com/zclconf/go-cty from 1.10.0 to 1.11.0
  • #1490: build(deps): Bump github.com/hashicorp/go-plugin from 1.4.4 to 1.4.5
  • #1491: build(deps): Bump sigstore/cosign-installer from 2.5.0 to 2.5.1
  • #1499: use mktemp when installing tflint (@dawez)
  • #1500: Move cli_test.go to integration test (@wata727)
  • #1504: build: Use default cosign version (@wata727)

v0.39.3

12 Aug 06:47
Compare
Choose a tag to compare

0.39.3 (2022-08-12)

GPG key ID: 8CE69160EB3F2FE9

Enhancements

BugFixes

  • #1478: terraformrules: Ignore invalid references in referencesInExpr (@wata727)

Chores

v0.39.2

04 Aug 16:42
Compare
Choose a tag to compare

0.39.2 (2022-08-05)

GPG key ID: 8CE69160EB3F2FE9

BugFixes

Chores

v0.39.1

29 Jul 14:09
Compare
Choose a tag to compare

0.39.1 (2022-07-29)

GPG key ID: 8CE69160EB3F2FE9

BugFixes

  • #1452: terraform_required_version: fix regression with multiple blocks (@bendrucker)
  • #1454: terraform_required_providers: fix regression with configuration_aliases (@bendrucker)
  • #1456: Fix panic that occurs when using sensitive count (@wata727)
  • #1458: terraformrules: Get module contents with IncludeNotCreated: true (@wata727)

Chores

  • #1449: Update verification steps for the latest Cosign (@wata727)

v0.39.0

27 Jul 16:05
Compare
Choose a tag to compare

0.39.0 (2022-07-28)

In this release, the dependencies on Terraform's internal API have been significantly changed. Normally, you should be unlikely to be directly affected by this change, but you may get different results in small details, such as error messages. See the Changes section for more details.

GPG key ID: 8CE69160EB3F2FE9

Changes

  • #1428: Replace config loader with a new loader (@wata727)
  • #1433: terraformrules: Remove dependencies on Terraform internal packages from rules (@wata727)

Enhancements

  • #1432: terraformrules: Walk map/list expressions deeply (@wata727)

BugFixes

  • #1445: terraform: Finalize variable values in Evaluator (@wata727)

Chores

  • #1421: build(deps): Bump github.com/hashicorp/go-getter from 1.6.1 to 1.6.2
  • #1425: build(deps): Bump github.com/hashicorp/hcl/v2 from 2.12.0 to 2.13.0
  • #1429: build(deps): Bump github.com/hashicorp/go-version from 1.5.0 to 1.6.0
  • #1430 #1433: build(deps): Bump sigstore/cosign-installer from 2.4.0 to 2.5.0
  • #1431: Installing on mac m1 (@caruccio)
  • #1438 #1442: build(deps): Bump github.com/spf13/afero from 1.8.2 to 1.9.2
  • #1439: build(deps): Bump golang from 1.18.3-alpine3.15 to 1.18.4-alpine3.15
  • #1444: build(deps): Bump alpine from 3.16.0 to 3.16.1
  • #1446: Bump cosign to v1.10.0 (@wata727)

v0.38.1

20 Jun 17:20
Compare
Choose a tag to compare

0.38.1 (2022-06-21)

GPG key ID: 8CE69160EB3F2FE9

0.38.0 (2022-06-21)

Enhancements

BugFixes

  • #1415: tflint: Skip evaluation of module arguments if the module call is not evaluated (@wata727)
  • #1416: cmd: Lookup issues by normalized path (@wata727)

Chores

  • #1405: build(deps): Bump alpine from 3.15.4 to 3.16.0
  • #1410: build(deps): Bump golang from 1.18.2-alpine3.15 to 1.18.3-alpine3.15
  • #1414: build(deps): Bump sigstore/cosign-installer from 2.3.0 to 2.4.0
  • #1419: Tweak issue templates (@wata727)

v0.37.0

29 May 17:13
Compare
Choose a tag to compare

0.37.0 (2022-05-30)

GPG key ID: 8CE69160EB3F2FE9

Enhancements

Chores

  • #1378: build(deps): Bump github.com/hashicorp/go-plugin from 1.4.3 to 1.4.4
  • #1379: build(deps): Bump docker/metadata-action from 3 to 4
  • #1380: build(deps): Bump docker/login-action from 1 to 2
  • #1381: build(deps): Bump docker/setup-buildx-action from 1 to 2
  • #1382: build(deps): Bump docker/build-push-action from 2 to 3
  • #1383: build(deps): Bump docker/setup-qemu-action from 1 to 2
  • #1385: Remove a redundant log message (@alexjurkiewicz)
  • #1386: build(deps): Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0
  • #1387: build(deps): Bump golang from 1.18.1-alpine3.15 to 1.18.2-alpine3.15
  • #1389: build(deps): Bump github.com/hashicorp/go-version from 1.4.0 to 1.5.0
  • #1390: build(deps): Bump github.com/hashicorp/go-getter from 1.5.11 to 1.6.1
  • #1391: build(deps): Bump goreleaser/goreleaser-action from 2 to 3
  • #1404: Remove testify (@wata727)

v0.36.2

06 May 14:08
Compare
Choose a tag to compare

0.36.2 (2022-05-06)

BugFixes

  • #1376: Fix unintended errors when enabling Terraform rules by CLI (@wata727)
  • #1377: Fix panic when enabling plugins by CLI (@wata727)

v0.36.1

05 May 15:12
Compare
Choose a tag to compare

0.36.1 (2022-05-05)

GPG key ID: 8CE69160EB3F2FE9

BugFixes

  • #1373: Fix panic when enabling Terraform rules by CLI (@wata727)