thestrukture/IDE

View on GitHub

Showing 44 of 1,416 total issues

Avoid deeply nested control flow statements.
Open

                        if inStructs == -1 {

                            inMethods := methods.FindLine("./methods.dsl", actline)
                            if inMethods == -1 {

Severity: Major
Found in api/handlers/rest_GETApiBuild.go - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

        } else if r.FormValue("type") == "3" {
            apps := methods.GetApps()
            app := methods.GetApp(apps, r.FormValue("pkg"))
            temp := []string{}
            for _, v := range app.Css {
    Severity: Major
    Found in api/handlers/rest_POSTApiAct.go - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

          } else if r.FormValue("type") == "3" {
              //pkg
              if r.FormValue("conf") != "do" {
                  response = templates.Delete(types.DForm{Text: "Are you sure you want to delete the package " + r.FormValue("pkg"), Link: "type=3&pkg=" + r.FormValue("pkg")})
      
      
      Severity: Major
      Found in api/handlers/rest_POSTApiDelete.go - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

            } else if calls[0] == "meth" {
                actionText = "The line is located in your package template pipelines at line: " + calls[1]
            }
        Severity: Major
        Found in api/methods/method_ParseLog.go - About 45 mins to fix
          Severity
          Category
          Status
          Source
          Language