diff --git a/internal/ipaddr/ip.go b/internal/ipaddr/ip.go index 304584e745..d482d92534 100644 --- a/internal/ipaddr/ip.go +++ b/internal/ipaddr/ip.go @@ -10,6 +10,7 @@ // This library accepts either size of byte slice but always // returns 16-byte addresses. +//nolint:cyclop,funlen,gochecknoglobals,gocritic,nonamedreturns,mnd // This file is copied from the Go codebase and intended to remain close to the original in case we need to backport changes. package ipaddr import ( diff --git a/internal/ipaddr/ip_test.go b/internal/ipaddr/ip_test.go index 8207239201..29ec23bf68 100644 --- a/internal/ipaddr/ip_test.go +++ b/internal/ipaddr/ip_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//nolint:gochecknoglobals,gocritic,govet // This file is copied from the Go codebase and intended to remain close to the original in case we need to backport changes. package ipaddr import ( diff --git a/internal/ipaddr/parse.go b/internal/ipaddr/parse.go index 07d6eece4a..6032de46c9 100644 --- a/internal/ipaddr/parse.go +++ b/internal/ipaddr/parse.go @@ -5,6 +5,7 @@ // Simple file i/o and string manipulation, to avoid // depending on strconv and bufio and strings. +//nolint:nonamedreturns,mnd // This file is copied from the Go codebase and intended to remain close to the original in case we need to backport changes. package ipaddr // Bigger than we need, not too big to worry about overflow