Skip to content

Commit 89bfdc0

Browse files
authored
build(deps): bump go-simpler.org/musttag from v0.7.2 to v0.8.0 (#4201)
1 parent 53e2c53 commit 89bfdc0

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ require (
120120
github.com/yeya24/promlinter v0.2.0
121121
github.com/ykadowak/zerologlint v0.1.3
122122
gitlab.com/bosi/decorder v0.4.1
123+
go-simpler.org/musttag v0.8.0
123124
go-simpler.org/sloglint v0.3.0
124-
go.tmz.dev/musttag v0.7.2
125125
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea
126126
golang.org/x/tools v0.15.0
127127
gopkg.in/yaml.v3 v3.0.1

go.sum

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/musttag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package golinters
22

33
import (
4-
"go.tmz.dev/musttag"
4+
"go-simpler.org/musttag"
55
"golang.org/x/tools/go/analysis"
66

77
"github.com/golangci/golangci-lint/pkg/config"

pkg/lint/lintersdb/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
658658
WithSince("v1.51.0").
659659
WithLoadForGoAnalysis().
660660
WithPresets(linter.PresetStyle, linter.PresetBugs).
661-
WithURL("https://github.com/tmzane/musttag"),
661+
WithURL("https://github.com/go-simpler/musttag"),
662662

663663
linter.NewConfig(golinters.NewNakedret(nakedretCfg)).
664664
WithSince("v1.19.0").

test/testdata/musttag.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88

99
// builtin functions:
1010
func musttagJSON() {
11-
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at "
11+
var user struct {
1212
Name string
1313
Email string `json:"email"`
1414
}
15-
json.Marshal(user)
15+
json.Marshal(user) // want "the given struct should be annotated with the `json` tag"
1616
}
1717

1818
// custom functions from config:

test/testdata/musttag_custom.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ import (
99

1010
// builtin functions:
1111
func musttagJSONCustom() {
12-
var user struct { // want "`anonymous struct` should be annotated with the `json` tag as it is passed to `json.Marshal` at "
12+
var user struct {
1313
Name string
1414
Email string `json:"email"`
1515
}
16-
json.Marshal(user)
16+
json.Marshal(user) // want "the given struct should be annotated with the `json` tag"
1717
}
1818

1919
// custom functions from config:
2020
func musttagASN1Custom() {
21-
var user struct { // want "`anonymous struct` should be annotated with the `asn1` tag as it is passed to `asn1.Marshal` at "
21+
var user struct {
2222
Name string
2323
Email string `asn1:"email"`
2424
}
25-
asn1.Marshal(user)
25+
asn1.Marshal(user) // want "the given struct should be annotated with the `asn1` tag"
2626
}

0 commit comments

Comments
 (0)