mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-14 07:18:44 -04:00
dev: remove Run.Args (#4525)
This commit is contained in:
parent
d37a3e0951
commit
a5e2fd817e
3 changed files with 4 additions and 9 deletions
pkg/commands
|
@ -369,8 +369,6 @@ func (c *runCommand) runAndPrint(ctx context.Context, args []string) error {
|
|||
|
||||
// runAnalysis executes the linters that have been enabled in the configuration.
|
||||
func (c *runCommand) runAnalysis(ctx context.Context, args []string) ([]result.Issue, error) {
|
||||
c.cfg.Run.Args = args
|
||||
|
||||
lintersToRun, err := c.dbManager.GetOptimizedLinters()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -381,8 +379,8 @@ func (c *runCommand) runAnalysis(ctx context.Context, args []string) ([]result.I
|
|||
return nil, fmt.Errorf("context loading failed: %w", err)
|
||||
}
|
||||
|
||||
runner, err := lint.NewRunner(c.log.Child(logutils.DebugKeyRunner),
|
||||
c.cfg, c.goenv, c.lineCache, c.fileCache, c.dbManager, lintCtx)
|
||||
runner, err := lint.NewRunner(c.log.Child(logutils.DebugKeyRunner), c.cfg, args,
|
||||
c.goenv, c.lineCache, c.fileCache, c.dbManager, lintCtx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue