Skip to content

Commit 93b3cf6

Browse files
committed
fix: gomodguard test
1 parent aaebd52 commit 93b3cf6

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module gomodguard
2+
3+
go 1.22.0
4+
5+
require (
6+
golang.org/x/mod v0.22.0
7+
gopkg.in/yaml.v3 v3.0.1
8+
)

pkg/golinters/gomodguard/testdata/go.sum

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

pkg/golinters/gomodguard/testdata/gomodguard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
linters-settings:
22
gomodguard:
33
allowed:
4-
modules: # List of allowed modules
5-
- golang.org/x/mod/modfile
4+
modules: # List of allowed modules
5+
- golang.org/x/mod
66
blocked:
77
modules: # List of blocked modules
88
- gopkg.in/yaml.v3: # Blocked module

0 commit comments

Comments
 (0)