libnetwork/osl/neigh_linux.go
Method Namespace.AddNeighbor
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (n *Namespace) AddNeighbor(dstIP net.IP, dstMac net.HardwareAddr, force bool, options ...NeighOption) error {
var (
iface netlink.Link
err error
neighborAlreadyPresent bool
Method Namespace.AddNeighbor
has 6 return statements (exceeds 4 allowed). Open
Open
func (n *Namespace) AddNeighbor(dstIP net.IP, dstMac net.HardwareAddr, force bool, options ...NeighOption) error {
var (
iface netlink.Link
err error
neighborAlreadyPresent bool