File tree 6 files changed +12
-12
lines changed
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ require (
120
120
github.com/yeya24/promlinter v0.2.0
121
121
github.com/ykadowak/zerologlint v0.1.3
122
122
gitlab.com/bosi/decorder v0.4.1
123
+ go-simpler.org/musttag v0.8.0
123
124
go-simpler.org/sloglint v0.3.0
124
- go.tmz.dev/musttag v0.7.2
125
125
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea
126
126
golang.org/x/tools v0.15.0
127
127
gopkg.in/yaml.v3 v3.0.1
Original file line number Diff line number Diff line change 1
1
package golinters
2
2
3
3
import (
4
- "go.tmz.dev /musttag"
4
+ "go-simpler.org /musttag"
5
5
"golang.org/x/tools/go/analysis"
6
6
7
7
"github.com/golangci/golangci-lint/pkg/config"
Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
658
658
WithSince ("v1.51.0" ).
659
659
WithLoadForGoAnalysis ().
660
660
WithPresets (linter .PresetStyle , linter .PresetBugs ).
661
- WithURL ("https://github.com/tmzane /musttag" ),
661
+ WithURL ("https://github.com/go-simpler /musttag" ),
662
662
663
663
linter .NewConfig (golinters .NewNakedret (nakedretCfg )).
664
664
WithSince ("v1.19.0" ).
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import (
8
8
9
9
// builtin functions:
10
10
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 {
12
12
Name string
13
13
Email string `json:"email"`
14
14
}
15
- json .Marshal (user )
15
+ json .Marshal (user ) // want "the given struct should be annotated with the `json` tag"
16
16
}
17
17
18
18
// custom functions from config:
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ import (
9
9
10
10
// builtin functions:
11
11
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 {
13
13
Name string
14
14
Email string `json:"email"`
15
15
}
16
- json .Marshal (user )
16
+ json .Marshal (user ) // want "the given struct should be annotated with the `json` tag"
17
17
}
18
18
19
19
// custom functions from config:
20
20
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 {
22
22
Name string
23
23
Email string `asn1:"email"`
24
24
}
25
- asn1 .Marshal (user )
25
+ asn1 .Marshal (user ) // want "the given struct should be annotated with the `asn1` tag"
26
26
}
You can’t perform that action at this time.
0 commit comments