summaryrefslogtreecommitdiff
path: root/compat/json/borrowed_tagkey_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2022-08-17 19:57:00 -0600
committerLuke Shumaker <lukeshu@datawire.io>2022-08-17 19:57:00 -0600
commit3bd2e0e93647b806a68f06f319ea23511ec24a37 (patch)
tree0c0f56296d0fe49e34e23d7738aed4dd60ca32e1 /compat/json/borrowed_tagkey_test.go
parentb2bf19e062ad1ce46dbf9107f5c3b47354f64d03 (diff)
Get the borrowed files passing the linter
Diffstat (limited to 'compat/json/borrowed_tagkey_test.go')
-rw-r--r--compat/json/borrowed_tagkey_test.go5
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 {