Skip to content

Commit f4e33e0

Browse files
build(deps): bump github.com/kunwardeep/paralleltest from 1.0.9 to 1.0.10 (#4394)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 2417da1 commit f4e33e0

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ require (
6565
github.com/kisielk/errcheck v1.7.0
6666
github.com/kkHAIKE/contextcheck v1.1.4
6767
github.com/kulti/thelper v0.6.3
68-
github.com/kunwardeep/paralleltest v1.0.9
68+
github.com/kunwardeep/paralleltest v1.0.10
6969
github.com/kyoh86/exportloopref v0.1.11
7070
github.com/ldez/gomoddirectives v0.2.3
7171
github.com/ldez/tagliatelle v0.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,9 @@ type NoNamedReturnsSettings struct {
703703
}
704704

705705
type ParallelTestSettings struct {
706-
IgnoreMissing bool `mapstructure:"ignore-missing"`
707-
IgnoreMissingSubtests bool `mapstructure:"ignore-missing-subtests"`
706+
Go string `mapstructure:"-"`
707+
IgnoreMissing bool `mapstructure:"ignore-missing"`
708+
IgnoreMissingSubtests bool `mapstructure:"ignore-missing-subtests"`
708709
}
709710

710711
type PerfSprintSettings struct {

pkg/golinters/paralleltest.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ func NewParallelTest(settings *config.ParallelTestSettings) *goanalysis.Linter {
1313

1414
var cfg map[string]map[string]any
1515
if settings != nil {
16-
cfg = map[string]map[string]any{
17-
a.Name: {
18-
"i": settings.IgnoreMissing,
19-
"ignoremissingsubtests": settings.IgnoreMissingSubtests,
20-
},
16+
d := map[string]any{
17+
"i": settings.IgnoreMissing,
18+
"ignoremissingsubtests": settings.IgnoreMissingSubtests,
2119
}
20+
21+
if config.IsGreaterThanOrEqualGo122(settings.Go) {
22+
d["ignoreloopVar"] = true
23+
}
24+
25+
cfg = map[string]map[string]any{a.Name: d}
2226
}
2327

2428
return goanalysis.NewLinter(

pkg/lint/lintersdb/manager.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
238238

239239
govetCfg.Go = m.cfg.Run.Go
240240

241+
parallelTestCfg.Go = m.cfg.Run.Go
242+
241243
gocriticCfg.Go = trimGoVersion(m.cfg.Run.Go)
242244

243245
if gofumptCfg.LangVersion == "" {

0 commit comments

Comments
 (0)