github.com/terraform-linters/tflint-plugin-sdk@v0.22.0/helper/issue.go (about)

     1  package helper
     2  
     3  import (
     4  	"github.com/hashicorp/hcl/v2"
     5  	"github.com/terraform-linters/tflint-plugin-sdk/tflint"
     6  )
     7  
     8  // Issue is a stub that has the same structure as the actually used issue object.
     9  // This is only used for testing, as the mock Runner doesn't depend on the actual Issue structure.
    10  type Issue struct {
    11  	Rule    tflint.Rule
    12  	Message string
    13  	Range   hcl.Range
    14  }
    15  
    16  // Issues is a list of Issue.
    17  type Issues []*Issue