Skip to content

Commit 233cdcb

Browse files
silverwindclaude
authored andcommitted
Add missing //nolint:depguard (go-gitea#37162)
When running `golangci-lint` without `GOEXPERIMENT=jsonv2`, a lint error `import 'encoding/json' is not allowed` is seen. All other files in the module that import `encodings/json` have `//nolint` already, so add it. --- This PR was written with the help of Claude Opus 4.6 Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
1 parent d0a39bc commit 233cdcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/json/jsonlegacy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package json
77

88
import (
9-
"encoding/json"
9+
"encoding/json" //nolint:depguard // this package wraps it
1010
"io"
1111
)
1212

0 commit comments

Comments
 (0)