concord-consortium/rigse

View on GitHub

Showing 2,136 of 2,138 total issues

Avoid too many return statements within this function.
Open

            return new Color(parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16));
Severity: Major
Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return new Color(255, 255, 255, 0);
    Severity: Major
    Found in rails/app/assets/javascripts/flotr/flotr.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return new Color(parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16));
      Severity: Major
      Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return new Color(255, 255, 255, 0);
        Severity: Major
        Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return ((result = Color.lookupColors[name])) ? new Color(result[0], result[1], result[2]) : false;
          Severity: Major
          Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return false;
            Severity: Major
            Found in rails/app/assets/javascripts/chosen.proto.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return false;
              Severity: Major
              Found in rails/app/assets/javascripts/chosen.proto.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return document.documentMode >= 8;
                Severity: Major
                Found in rails/app/assets/javascripts/chosen.proto.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return true;
                  Severity: Major
                  Found in rails/app/assets/javascripts/chosen.proto.js - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                          return error("You must be a teacher of the class to register and add students")
                    Severity: Major
                    Found in rails/app/controllers/api/v1/students_controller.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return [current_user, nil]
                      Severity: Major
                      Found in rails/app/controllers/api/api_controller.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                              return error("Unable to add student to class")
                        Severity: Major
                        Found in rails/app/controllers/api/v1/students_controller.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                return
                          Severity: Major
                          Found in rails/app/controllers/api/v1/materials_controller.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                  return error("Unable to save newly created user")
                            Severity: Major
                            Found in rails/app/controllers/api/v1/students_controller.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                    return error("Unable to create student")
                              Severity: Major
                              Found in rails/app/controllers/api/v1/students_controller.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                      return error("TeacherClazz not found") if !teacher_clazz
                                Severity: Major
                                Found in rails/app/controllers/api/v1/teacher_classes_controller.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return
                                  Severity: Major
                                  Found in rails/app/controllers/api/v1/passwords_controller.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return error('Unable to delete the bookmark')
                                    Severity: Major
                                    Found in rails/app/controllers/api/v1/bookmarks_controller.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return error('You are not authorized to update the bookmark')
                                      Severity: Major
                                      Found in rails/app/controllers/api/v1/bookmarks_controller.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return error(user.errors.full_messages.uniq.join(". ").gsub("..", "."))
                                        Severity: Major
                                        Found in rails/app/controllers/api/v1/students_controller.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language