github.com/nozzle/golangci-lint@v1.49.0-nz3/pkg/golinters/goanalysis/issue.go (about)

     1  package goanalysis
     2  
     3  import (
     4  	"go/token"
     5  
     6  	"golang.org/x/tools/go/analysis"
     7  
     8  	"github.com/golangci/golangci-lint/pkg/result"
     9  )
    10  
    11  type Issue struct {
    12  	result.Issue
    13  	Pass *analysis.Pass
    14  }
    15  
    16  func NewIssue(i *result.Issue, pass *analysis.Pass) Issue {
    17  	return Issue{
    18  		Issue: *i,
    19  		Pass:  pass,
    20  	}
    21  }
    22  
    23  type EncodingIssue struct {
    24  	FromLinter           string
    25  	Text                 string
    26  	Pos                  token.Position
    27  	LineRange            *result.Range
    28  	Replacement          *result.Replacement
    29  	ExpectNoLint         bool
    30  	ExpectedNoLintLinter string
    31  }