2021-11-14 20:01:54 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2021-11-16 20:07:53 +00:00
|
|
|
// Run encapsulates the config options for running the linter analysis.
|
2021-11-14 20:01:54 +00:00
|
|
|
type Run struct {
|
|
|
|
IsVerbose bool `mapstructure:"verbose"`
|
|
|
|
Silent bool
|
|
|
|
CPUProfilePath string
|
|
|
|
MemProfilePath string
|
|
|
|
TracePath string
|
|
|
|
Concurrency int
|
|
|
|
PrintResourcesUsage bool `mapstructure:"print-resources-usage"`
|
|
|
|
|
2021-11-16 20:07:53 +00:00
|
|
|
Config string // The path to the golangci config file, as specified with the --config argument.
|
2021-11-14 20:01:54 +00:00
|
|
|
NoConfig bool
|
|
|
|
|
|
|
|
Args []string
|
|
|
|
|
|
|
|
BuildTags []string `mapstructure:"build-tags"`
|
|
|
|
ModulesDownloadMode string `mapstructure:"modules-download-mode"`
|
|
|
|
|
|
|
|
ExitCodeIfIssuesFound int `mapstructure:"issues-exit-code"`
|
|
|
|
AnalyzeTests bool `mapstructure:"tests"`
|
|
|
|
|
|
|
|
// Deprecated: Deadline exists for historical compatibility
|
|
|
|
// and should not be used. To set run timeout use Timeout instead.
|
|
|
|
Deadline time.Duration
|
|
|
|
Timeout time.Duration
|
|
|
|
|
|
|
|
PrintVersion bool
|
|
|
|
SkipFiles []string `mapstructure:"skip-files"`
|
|
|
|
SkipDirs []string `mapstructure:"skip-dirs"`
|
|
|
|
UseDefaultSkipDirs bool `mapstructure:"skip-dirs-use-default"`
|
|
|
|
|
|
|
|
AllowParallelRunners bool `mapstructure:"allow-parallel-runners"`
|
|
|
|
AllowSerialRunners bool `mapstructure:"allow-serial-runners"`
|
|
|
|
}
|