Skip to content

Commit 5aa7cc4

Browse files
committed
chore: use new fields
1 parent fae2f9f commit 5aa7cc4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/lint/runner.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,16 @@ func NewRunner(log logutils.Log, cfg *config.Config, goenv *goutil.Env,
4141
// or process other paths (skip files).
4242
files := fsutils.NewFiles(lineCache, cfg.Output.PathPrefix)
4343

44-
skipFilesProcessor, err := processors.NewSkipFiles(cfg.Run.SkipFiles, cfg.Output.PathPrefix)
44+
skipFilesProcessor, err := processors.NewSkipFiles(cfg.Issues.ExcludeFiles, cfg.Output.PathPrefix)
4545
if err != nil {
4646
return nil, err
4747
}
4848

49-
skipDirs := cfg.Run.SkipDirs
50-
if cfg.Run.UseDefaultSkipDirs {
49+
skipDirs := cfg.Issues.ExcludeDirs
50+
if cfg.Issues.UseDefaultExcludeDirs {
5151
skipDirs = append(skipDirs, packages.StdExcludeDirRegexps...)
5252
}
53+
5354
skipDirsProcessor, err := processors.NewSkipDirs(skipDirs, log.Child(logutils.DebugKeySkipDirs), cfg.Run.Args, cfg.Output.PathPrefix)
5455
if err != nil {
5556
return nil, err

0 commit comments

Comments
 (0)