estimancy/projestimate

View on GitHub

Showing 1,675 of 1,675 total issues

Avoid too many return statements within this function.
Open

            else if (sourceEdge[2] >= 1 && targetEdge[2] <= 0) return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];
Severity: Major
Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                else return [ midx + (-1 * dx) , midy + (-1 * dy) ];
    Severity: Major
    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                          if ( xD < yD ) { return -1; }
      Severity: Major
      Found in app/assets/javascripts/pager.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                            if (isNaN(xF) !== isNaN(yF)) { return (isNaN(xF)) ? 1 : -1; }
        Severity: Major
        Found in app/assets/javascripts/pager.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];
          Severity: Major
          Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        if (sourceEdge[3] <= 0 && targetEdge[3] >= 1) return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];
            Severity: Major
            Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          else return [ midx + (1 * dx) , midy + (-1 * dy) ];
              Severity: Major
              Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                return ts.sortText(table, b, a);
                Severity: Major
                Found in app/assets/javascripts/pager.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];
                  Severity: Major
                  Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        if ( xD > yD ) { return 1; }
                    Severity: Major
                    Found in app/assets/javascripts/pager.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                          if (xF > yF) { return 1; }
                      Severity: Major
                      Found in app/assets/javascripts/pager.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    if (sourceEdge[3] >= 1 && targetEdge[3] <= 0) return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];
                        Severity: Major
                        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                          return 0;
                          Severity: Major
                          Found in app/assets/javascripts/pager.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                                if (xF < yF) { return -1; }
                            Severity: Major
                            Found in app/assets/javascripts/pager.js - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return false
                              Severity: Major
                              Found in app/models/attribute_module.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                          return false
                                Severity: Major
                                Found in app/models/estimation_value.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return false
                                  Severity: Major
                                  Found in app/models/attribute_module.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                              redirect_to redirect_apply(edit_project_path(@project, :anchor => session[:anchor]), nil, organization_estimations_path(@project.organization)) and return
                                    Severity: Major
                                    Found in app/controllers/projects_controller.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                redirect_to redirect_apply(edit_project_path(@project, :anchor => session[:anchor]), nil, organization_setting_path(@project.organization, anchor: "tabs-estimation-models")) and return
                                      Severity: Major
                                      Found in app/controllers/projects_controller.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              redirect_to organization_estimations_path(@current_organization), :flash => {:error => I18n.t(:error_project_checkout_failed)} and return
                                        Severity: Major
                                        Found in app/controllers/projects_controller.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language