pkg/cmd/root.go
Method FreeOptions.prepareFreeTableHeader
has 71 lines of code (exceeds 50 allowed). Consider refactoring. Wontfix
Wontfix
func (o *FreeOptions) prepareFreeTableHeader() {
hName := "NAME"
hStatus := "STATUS"
hCPUUse := "CPU/use"
Method FreeOptions.prepareListTableHeader
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Wontfix
Wontfix
func (o *FreeOptions) prepareListTableHeader() {
hNode := "NODE NAME"
hNameSpace := "NAMESPACE"
hPod := "POD NAME"
Method FreeOptions.Run
has 5 return statements (exceeds 4 allowed). Wontfix
Wontfix
func (o *FreeOptions) Run(args []string) error {
// get nodes
nodes, err := util.GetNodes(o.nodeClient, args, o.labelSelector)
if err != nil {