pkg/fwdIp/fwdIp.go
Method ForwardIPOpts.MatchList
has 77 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (o ForwardIPOpts) MatchList() []string {
if o.ClusterN == 0 && o.NamespaceN == 0 {
return []string{
o.PodName,
Function getForwardConfiguration
has 5 return statements (exceeds 4 allowed). Open
Open
func getForwardConfiguration(opts ForwardIPOpts) *ForwardConfiguration {
if forwardConfiguration != nil {
return forwardConfiguration
}
Function ipFromString
has 5 return statements (exceeds 4 allowed). Open
Open
func ipFromString(ipStr string) (net.IP, error) {
ipParts := strings.Split(ipStr, ".")
octet0, err := strconv.Atoi(ipParts[0])
if err != nil {