github terraform-linters/tflint v0.40.0

latest releases: v0.53.0, v0.52.0, v0.51.2...
2 years ago

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)

Don't miss a new tflint release

NewReleases is sending notifications on new releases.