update and verify netparse

Add script to verify that net.ParseIP and net.ParseCIDR are
not being used.

Add another script to automatically replace those functions
for the ones forked in k8s.io/utils/net
This commit is contained in:
Antonio Ojea
2021-08-19 13:19:35 +02:00
parent 175776d25a
commit 06f2d678ee
5 changed files with 153 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ package tools
import (
// linting tools
_ "github.com/aojea/sloppy-netparser"
_ "github.com/client9/misspell/cmd/misspell"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/google/go-flow-levee/cmd/levee"