Skip to content

# tflint-ignore-file: terraform_required_version is being ignored #1986

Closed Answered by bendrucker
samrobillard asked this question in Q&A
Discussion options

You must be logged in to vote

File level ignore annotations suppress issues that arise with a range from that file. Rules like terraform_required_version that detect the absence of some recommended declaration inherently have no range to reference.

tflint --format json
{
  "issues": [
    {
      "rule": {
        "name": "terraform_required_version",
        "severity": "warning",
        "link": "https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.2.2/docs/rules/terraform_required_version.md"
      },
      "message": "terraform \"required_version\" attribute is required",
      "range": {
        "filename": "",
        "start": {
          "line": 0,
          "column": 0
        },
        "end":…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samrobillard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1985 on February 16, 2024 21:22.