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

     1  package tflint
     2  
     3  import (
     4  	"errors"
     5  )
     6  
     7  // List of errors returned by TFLint.
     8  var (
     9  	// ErrUnknownValue is an error that occurs when decoding an unknown value to a Go value.
    10  	ErrUnknownValue = errors.New("unknown value found")
    11  	// ErrNullValue is an error that occurs when decoding null to a Go value.
    12  	ErrNullValue = errors.New("null value found")
    13  	// ErrUnevaluable is an error that occurs when decoding an unevaluable value to a Go value.
    14  	//
    15  	// Deprecated: This error is no longer returned since TFLint v0.41.
    16  	ErrUnevaluable = errors.New("")
    17  	// ErrSensitive is an error that occurs when decoding a sensitive value to a Go value.
    18  	ErrSensitive = errors.New("sensitive value found")
    19  	// ErrEphemeral is an error that occurs when decoding an ephemeral value to a Go value.
    20  	ErrEphemeral = errors.New("ephemeral value found")
    21  )
    22  
    23  var (
    24  	// ErrFixNotSupported is an error to return if autofix is not supported.
    25  	// This can prevent the issue from being marked as fixable by returning it
    26  	// in FixFunc when autofix cannot be implemented, such as with JSON syntax.
    27  	ErrFixNotSupported = errors.New("autofix is not supported")
    28  )