makocchi-git/kubectl-free

View on GitHub
pkg/cmd/root.go

Summary

Maintainability
A
0 mins
Test Coverage

Method FreeOptions.prepareFreeTableHeader has 71 lines of code (exceeds 50 allowed). Consider refactoring.
Wontfix

func (o *FreeOptions) prepareFreeTableHeader() {

    hName := "NAME"
    hStatus := "STATUS"
    hCPUUse := "CPU/use"
Severity: Minor
Found in pkg/cmd/root.go - About 1 hr to fix

    Method FreeOptions.prepareListTableHeader has 55 lines of code (exceeds 50 allowed). Consider refactoring.
    Wontfix

    func (o *FreeOptions) prepareListTableHeader() {
    
        hNode := "NODE NAME"
        hNameSpace := "NAMESPACE"
        hPod := "POD NAME"
    Severity: Minor
    Found in pkg/cmd/root.go - About 1 hr to fix

      Method FreeOptions.Run has 5 return statements (exceeds 4 allowed).
      Wontfix

      func (o *FreeOptions) Run(args []string) error {
      
          // get nodes
          nodes, err := util.GetNodes(o.nodeClient, args, o.labelSelector)
          if err != nil {
      Severity: Major
      Found in pkg/cmd/root.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status