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

     1  package tflint
     2  
     3  // Severity indicates the severity of the issue.
     4  type Severity int32
     5  
     6  const (
     7  	// ERROR is possible errors
     8  	ERROR Severity = iota
     9  	// WARNING doesn't cause problem immediately, but not good
    10  	WARNING
    11  	// NOTICE is not important, it's mentioned
    12  	NOTICE
    13  )
    14  
    15  // String returns the string representation of the severity.
    16  func (s Severity) String() string {
    17  	switch s {
    18  	case ERROR:
    19  		return "Error"
    20  	case WARNING:
    21  		return "Warning"
    22  	case NOTICE:
    23  		return "Notice"
    24  	}
    25  
    26  	return "Unknown"
    27  }