Skip to content

Commit 8baaf6d

Browse files
build(deps): bump github.com/ldez/gomoddirectives from 0.8.0 to 0.9.0 (#6620)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 78b2ed9 commit 8baaf6d

6 files changed

Lines changed: 13 additions & 3 deletions

File tree

.golangci.next.reference.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,9 @@ linters:
14801480
# Default: []
14811481
replace-allow-list:
14821482
- launchpad.net/gocheck
1483+
# Allow all `replace` directives.
1484+
# Default: false
1485+
replace-allow-all: true
14831486
# Allow to not explain why the version has been retracted in the `retract` directives.
14841487
# Default: false
14851488
retract-allow-no-explanation: true

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ require (
8888
github.com/kunwardeep/paralleltest v1.0.15
8989
github.com/lasiar/canonicalheader v1.1.2
9090
github.com/ldez/exptostd v0.4.5
91-
github.com/ldez/gomoddirectives v0.8.0
91+
github.com/ldez/gomoddirectives v0.9.0
9292
github.com/ldez/grignotin v0.10.1
9393
github.com/ldez/tagliatelle v0.7.2
9494
github.com/ldez/usetesting 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.

jsonschema/golangci.next.jsonschema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,6 +2266,11 @@
22662266
"type": "string"
22672267
}
22682268
},
2269+
"replace-allow-all": {
2270+
"description": "Allow all `replace` directives.",
2271+
"type": "boolean",
2272+
"default": false
2273+
},
22692274
"retract-allow-no-explanation": {
22702275
"description": "Allow to not explain why the version has been retracted in the `retract` directives.",
22712276
"type": "boolean",

pkg/config/linters_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ type GoHeaderSettings struct {
608608
type GoModDirectivesSettings struct {
609609
ReplaceAllowList []string `mapstructure:"replace-allow-list"`
610610
ReplaceLocal bool `mapstructure:"replace-local"`
611+
ReplaceAllowAll bool `mapstructure:"replace-allow-all"`
611612
ExcludeForbidden bool `mapstructure:"exclude-forbidden"`
612613
RetractAllowNoExplanation bool `mapstructure:"retract-allow-no-explanation"`
613614
ToolchainForbidden bool `mapstructure:"toolchain-forbidden"`

pkg/golinters/gomoddirectives/gomoddirectives.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func New(settings *config.GoModDirectivesSettings) *goanalysis.Linter {
2424
if settings != nil {
2525
opts.ReplaceAllowLocal = settings.ReplaceLocal
2626
opts.ReplaceAllowList = settings.ReplaceAllowList
27+
opts.ReplaceAllowAll = settings.ReplaceAllowAll
2728
opts.RetractAllowNoExplanation = settings.RetractAllowNoExplanation
2829
opts.ExcludeForbidden = settings.ExcludeForbidden
2930
opts.ToolchainForbidden = settings.ToolchainForbidden

0 commit comments

Comments
 (0)