diff options
Diffstat (limited to 'compat/json/borrowed_tagkey_test.go')
-rw-r--r-- | compat/json/borrowed_tagkey_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/json/borrowed_tagkey_test.go b/compat/json/borrowed_tagkey_test.go index 6330efd..59e4061 100644 --- a/compat/json/borrowed_tagkey_test.go +++ b/compat/json/borrowed_tagkey_test.go @@ -41,6 +41,7 @@ type percentSlashTag struct { } type punctuationTag struct { + //nolint:staticcheck // testing handling of bad tags // MODIFIED: added nolint annotation V string `json:"!#$%&()*+-./:;<=>?@[]^_{|}~ "` // https://golang.org/issue/3546 } @@ -57,11 +58,11 @@ type misnamedTag struct { } type badFormatTag struct { - Y string `:"BadFormat"` + Y string `:"BadFormat"` //nolint:govet // testing handling of bad tags // MODIFIED: added nolint annotation } type badCodeTag struct { - Z string `json:" !\"#&'()*+,."` + Z string `json:" !\"#&'()*+,."` //nolint:staticcheck // testing handling of bad tags // MODIFIED: added nolint annotation } type spaceTag struct { |