Skip to content

Commit b388efe

Browse files
build(deps): bump github.com/ldez/gomoddirectives from 0.7.1 to 0.8.0 (#6241)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 973fed6 commit b388efe

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.golangci.next.reference.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,9 @@ linters:
14531453
# Defines a pattern to validate `go` minimum version directive.
14541454
# Default: '' (no match)
14551455
go-version-pattern: '\d\.\d+(\.0)?'
1456+
# Check the validity of the module path.
1457+
# Default: false
1458+
check-module-path: true
14561459

14571460
gomodguard:
14581461
allowed:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ require (
7474
github.com/kunwardeep/paralleltest v1.0.15
7575
github.com/lasiar/canonicalheader v1.1.2
7676
github.com/ldez/exptostd v0.4.5
77-
github.com/ldez/gomoddirectives v0.7.1
77+
github.com/ldez/gomoddirectives v0.8.0
7878
github.com/ldez/grignotin v0.10.1
7979
github.com/ldez/tagliatelle v0.7.2
8080
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
@@ -2220,6 +2220,11 @@
22202220
"description": "Defines a pattern to validate `go` minimum version directive.",
22212221
"type": "string",
22222222
"default": ""
2223+
},
2224+
"check-module-path": {
2225+
"description": "Check the validity of the module path.",
2226+
"type": "boolean",
2227+
"default": false
22232228
}
22242229
}
22252230
},

pkg/config/linters_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ type GoModDirectivesSettings struct {
575575
ToolForbidden bool `mapstructure:"tool-forbidden"`
576576
GoDebugForbidden bool `mapstructure:"go-debug-forbidden"`
577577
GoVersionPattern string `mapstructure:"go-version-pattern"`
578+
CheckModulePath bool `mapstructure:"check-module-path"`
578579
}
579580

580581
type GoModGuardSettings struct {

pkg/golinters/gomoddirectives/gomoddirectives.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func New(settings *config.GoModDirectivesSettings) *goanalysis.Linter {
2929
opts.ToolchainForbidden = settings.ToolchainForbidden
3030
opts.ToolForbidden = settings.ToolForbidden
3131
opts.GoDebugForbidden = settings.GoDebugForbidden
32+
opts.CheckModulePath = settings.CheckModulePath
3233

3334
if settings.ToolchainPattern != "" {
3435
exp, err := regexp.Compile(settings.ToolchainPattern)

0 commit comments

Comments
 (0)