Skip to content

Commit

Permalink
build(deps): bump github.com/kunwardeep/paralleltest from 1.0.7 to 1.…
Browse files Browse the repository at this point in the history
…0.8 (#3985)
  • Loading branch information
brandur authored Aug 3, 2023
1 parent e555470 commit 1c67f59
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,10 @@ linters-settings:
# Ignore missing calls to `t.Parallel()` and only report incorrect uses of it.
# Default: false
ignore-missing: true
# Ignore missing calls to `t.Parallel()` in subtests. Top-level tests are
# still required to have `t.Parallel`, but subtests are allowed to skip it.
# Default: false
ignore-missing-subtests: true

prealloc:
# IMPORTANT: we don't recommend using this linter before doing performance profiling.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ require (
github.com/kisielk/errcheck v1.6.3
github.com/kkHAIKE/contextcheck v1.1.4
github.com/kulti/thelper v0.6.3
github.com/kunwardeep/paralleltest v1.0.7
github.com/kunwardeep/paralleltest v1.0.8
github.com/kyoh86/exportloopref v0.1.11
github.com/ldez/gomoddirectives v0.2.3
github.com/ldez/tagliatelle v0.5.0
Expand Down Expand Up @@ -117,7 +117,7 @@ require (
gitlab.com/bosi/decorder v0.4.0
go.tmz.dev/musttag v0.7.1
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea
golang.org/x/tools v0.11.0
golang.org/x/tools v0.11.1
gopkg.in/yaml.v3 v3.0.1
honnef.co/go/tools v0.4.3
mvdan.cc/gofumpt v0.5.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ type NoNamedReturnsSettings struct {
ReportErrorInDefer bool `mapstructure:"report-error-in-defer"`
}
type ParallelTestSettings struct {
IgnoreMissing bool `mapstructure:"ignore-missing"`
IgnoreMissing bool `mapstructure:"ignore-missing"`
IgnoreMissingSubtests bool `mapstructure:"ignore-missing-subtests"`
}

type PreallocSettings struct {
Expand Down
5 changes: 3 additions & 2 deletions pkg/golinters/paralleltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import (
)

func NewParallelTest(settings *config.ParallelTestSettings) *goanalysis.Linter {
a := paralleltest.Analyzer
a := paralleltest.NewAnalyzer()

var cfg map[string]map[string]any
if settings != nil {
cfg = map[string]map[string]any{
a.Name: {
"i": settings.IgnoreMissing,
"i": settings.IgnoreMissing,
"ignoremissingsubtests": settings.IgnoreMissingSubtests,
},
}
}
Expand Down

0 comments on commit 1c67f59

Please sign in to comment.