From 8c4b07dca737a6d371b81b55cae2bce916b64aef Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 14 Aug 2024 19:50:24 -0700 Subject: [PATCH] Fix lints with new golangci-lint The comment on "iter" is because the linter was not stable and kept on shifting it every time it ran. --- decoder.go | 4 ++-- traverse.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/decoder.go b/decoder.go index db941fc..5864873 100644 --- a/decoder.go +++ b/decoder.go @@ -30,8 +30,8 @@ const ( _Slice // We don't use the next two. They are placeholders. See the spec // for more details. - _Container //nolint: deadcode, varcheck // above - _Marker //nolint: deadcode, varcheck // above + _Container //nolint:deadcode,varcheck // above + _Marker //nolint:deadcode,varcheck // above _Bool _Float32 ) diff --git a/traverse.go b/traverse.go index 4ad60df..9e4dc3d 100644 --- a/traverse.go +++ b/traverse.go @@ -4,6 +4,7 @@ import ( "fmt" "net/netip" + // comment to prevent gofumpt from randomly moving iter. "iter" )