Skip to content

Commit

Permalink
Merge pull request #833 from jonjohnsonjr/linter
Browse files Browse the repository at this point in the history
Plumb check configs through to linters
  • Loading branch information
kaniini authored Nov 8, 2023
2 parents cf54b36 + eba8cef commit 0fde8c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ func (b *Build) BuildPackage(ctx context.Context) error {
// add the main package to the linter queue
lintTarget := linterTarget{
pkgName: b.Configuration.Package.Name,
checks: b.Configuration.Package.Checks,
}
linterQueue = append(linterQueue, lintTarget)
}
Expand Down Expand Up @@ -1082,6 +1083,7 @@ func (b *Build) BuildPackage(ctx context.Context) error {
// add the main package to the linter queue
lintTarget := linterTarget{
pkgName: sp.Name,
checks: sp.Checks,
}
linterQueue = append(linterQueue, lintTarget)
}
Expand Down

0 comments on commit 0fde8c7

Please sign in to comment.