 9ba730e989
			
		
	
	
		9ba730e989
		
			
		
	
	
	
	
		
			
			Cache linting results. Reanalyze only changed packages and packages tree depending on them. Fixes #768, fixes #809
		
			
				
	
	
		
			30 lines
		
	
	
		
			453 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			453 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package goanalysis
 | |
| 
 | |
| import (
 | |
| 	"go/token"
 | |
| 
 | |
| 	"golang.org/x/tools/go/analysis"
 | |
| 
 | |
| 	"github.com/golangci/golangci-lint/pkg/result"
 | |
| )
 | |
| 
 | |
| type Issue struct {
 | |
| 	result.Issue
 | |
| 	Pass *analysis.Pass
 | |
| }
 | |
| 
 | |
| func NewIssue(i *result.Issue, pass *analysis.Pass) Issue {
 | |
| 	return Issue{
 | |
| 		Issue: *i,
 | |
| 		Pass:  pass,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| type EncodingIssue struct {
 | |
| 	FromLinter  string
 | |
| 	Text        string
 | |
| 	Pos         token.Position
 | |
| 	LineRange   *result.Range
 | |
| 	Replacement *result.Replacement
 | |
| }
 |