File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11package golinters
22
33import (
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"
Original file line number Diff line number Diff 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" ).
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import (
88
99// builtin functions:
1010func 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:
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ import (
99
1010// builtin functions:
1111func 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:
2020func 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}
You can’t perform that action at this time.
0 commit comments