github.com/shulhan/golangci-lint@v1.10.1/pkg/lint/linter/context.go (about) 1 package linter 2 3 import ( 4 "github.com/golangci/golangci-lint/pkg/config" 5 "github.com/golangci/golangci-lint/pkg/lint/astcache" 6 "github.com/golangci/golangci-lint/pkg/logutils" 7 "github.com/golangci/golangci-lint/pkg/packages" 8 "golang.org/x/tools/go/loader" 9 "golang.org/x/tools/go/ssa" 10 ) 11 12 type Context struct { 13 PkgProgram *packages.Program 14 Cfg *config.Config 15 Program *loader.Program 16 SSAProgram *ssa.Program 17 LoaderConfig *loader.Config 18 ASTCache *astcache.Cache 19 NotCompilingPackages []*loader.PackageInfo 20 Log logutils.Log 21 } 22 23 func (c *Context) Settings() *config.LintersSettings { 24 return &c.Cfg.LintersSettings 25 }