github.com/nozzle/golangci-lint@v1.49.0-nz3/pkg/config/run.go (about)

     1  package config
     2  
     3  import "time"
     4  
     5  // Run encapsulates the config options for running the linter analysis.
     6  type Run struct {
     7  	IsVerbose           bool `mapstructure:"verbose"`
     8  	Silent              bool
     9  	CPUProfilePath      string
    10  	MemProfilePath      string
    11  	TracePath           string
    12  	Concurrency         int
    13  	PrintResourcesUsage bool `mapstructure:"print-resources-usage"`
    14  
    15  	Config   string // The path to the golangci config file, as specified with the --config argument.
    16  	NoConfig bool
    17  
    18  	Args []string
    19  
    20  	Go string `mapstructure:"go"`
    21  
    22  	BuildTags           []string `mapstructure:"build-tags"`
    23  	ModulesDownloadMode string   `mapstructure:"modules-download-mode"`
    24  
    25  	ExitCodeIfIssuesFound int  `mapstructure:"issues-exit-code"`
    26  	AnalyzeTests          bool `mapstructure:"tests"`
    27  
    28  	// Deprecated: Deadline exists for historical compatibility
    29  	// and should not be used. To set run timeout use Timeout instead.
    30  	Deadline time.Duration
    31  	Timeout  time.Duration
    32  
    33  	PrintVersion       bool
    34  	SkipFiles          []string `mapstructure:"skip-files"`
    35  	SkipDirs           []string `mapstructure:"skip-dirs"`
    36  	UseDefaultSkipDirs bool     `mapstructure:"skip-dirs-use-default"`
    37  
    38  	AllowParallelRunners bool `mapstructure:"allow-parallel-runners"`
    39  	AllowSerialRunners   bool `mapstructure:"allow-serial-runners"`
    40  }