* build(deps): bump github.com/kyoh86/exportloopref from 0.1.4 to 0.1.7 Bumps [github.com/kyoh86/exportloopref](https://github.com/kyoh86/exportloopref) from 0.1.4 to 0.1.7. - [Release notes](https://github.com/kyoh86/exportloopref/releases) - [Changelog](https://github.com/kyoh86/exportloopref/blob/master/.goreleaser.yml) - [Commits](https://github.com/kyoh86/exportloopref/compare/v0.1.4...v0.1.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix exportloopref linter Change the WithLoadMode to use LoadModeTypesInfo isntead of LoadModeSyntax Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			369 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			369 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package golinters
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/kyoh86/exportloopref"
 | 
						|
	"golang.org/x/tools/go/analysis"
 | 
						|
 | 
						|
	"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
 | 
						|
)
 | 
						|
 | 
						|
func NewExportLoopRef() *goanalysis.Linter {
 | 
						|
	a := exportloopref.Analyzer
 | 
						|
 | 
						|
	return goanalysis.NewLinter(
 | 
						|
		a.Name,
 | 
						|
		a.Doc,
 | 
						|
		[]*analysis.Analyzer{a},
 | 
						|
		nil,
 | 
						|
	).WithLoadMode(goanalysis.LoadModeTypesInfo)
 | 
						|
}
 |