concord-consortium/rigse

View on GitHub

Showing 1,200 of 2,135 total issues

Consider simplifying this complex logical expression.
Open

        if(n.series && (n.mouse && n.mouse.track && !prevHit || (prevHit /*&& (n.x != prevHit.x || n.y != prevHit.y)*/))){
            var mt = this.mouseTrack || this.el.select(".flotr-mouse-value")[0],
                pos = '', 
                s = n.series,
                p = n.mouse.position, 
Severity: Major
Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if (!options.HtmlText && this.textEnabled) {
                    var style = {
                        size: options.fontSize*1.1,
                        color: options.grid.color
                    };
    Severity: Major
    Found in rails/app/assets/javascripts/flotr/flotr_out.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                  if (!options.HtmlText && this.textEnabled) {
                      var style = {
                          size: options.fontSize*1.1,
                          color: options.grid.color
                      };
      Severity: Major
      Found in rails/app/assets/javascripts/flotr/flotr.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                        if ((doc = node.ownerDocument) && (win = doc.defaultView) && 
                            win.getSelection && doc.createRange && 
                            (selection = window.getSelection()) && 
                            selection.removeAllRanges) {
                                range = doc.createRange();
        Severity: Major
        Found in rails/app/assets/javascripts/flotr/flotr.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if(n.series && (n.mouse && n.mouse.track && !prevHit || (prevHit /*&& (n.x != prevHit.x || n.y != prevHit.y)*/))){
                      var mt = this.mouseTrack || this.el.select(".flotr-mouse-value")[0],
                          pos = '', 
                          s = n.series,
                          p = n.mouse.position, 
          Severity: Major
          Found in rails/app/assets/javascripts/flotr/flotr.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                  if((tag_name = src.tagName.toUpperCase()) && (
                    tag_name=='INPUT' ||
                    tag_name=='SELECT' ||
                    tag_name=='OPTION' ||
                    tag_name=='BUTTON' ||
            Severity: Major
            Found in rails/app/assets/javascripts/dragdrop.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          if((tag_name = src.tagName.toUpperCase()) && (
                              tag_name=='INPUT' || tag_name=='SELECT' || tag_name=='OPTION' ||
                              tag_name=='BUTTON' || tag_name=='TEXTAREA')) return;
              Severity: Major
              Found in rails/app/assets/javascripts/livepipe/resizable.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                    if request.format && request.format.html? && current_settings && current_settings.use_student_security_questions && !current_visitor.portal_student.nil? && current_visitor.security_questions.size < 3
                      unless session_sensitive_path
                        flash.keep
                        redirect_to(edit_user_security_questions_path(current_visitor))
                      end
                Severity: Major
                Found in rails/app/controllers/application_controller.rb - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                      if request.format && request.format.html? && current_settings && current_settings.require_user_consent? && !current_visitor.portal_student.nil? && !current_visitor.asked_age?
                        unless session_sensitive_path
                          flash.keep
                          redirect_to(ask_consent_portal_student_path(current_visitor.portal_student))
                        end
                  Severity: Major
                  Found in rails/app/controllers/application_controller.rb - About 40 mins to fix

                    Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      function condense( unmatched, map, filter, context, xml ) {
                    Severity: Minor
                    Found in rails/app/assets/javascripts/prototype.js - About 35 mins to fix

                      Function pixels has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              pixels: function( el, areaW, areaH, imgW, imgH ) {
                      Severity: Minor
                      Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 35 mins to fix

                        Function setSizeAndPos has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                    function setSizeAndPos( piece, w, h, x, y ) {
                        Severity: Minor
                        Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 35 mins to fix

                          Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                superMatcher = function( seed, context, xml, results, outermost ) {
                          Severity: Minor
                          Found in rails/app/assets/javascripts/prototype.js - About 35 mins to fix

                            Function initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                  function(init, element, eventName, selector, callback) {
                            Severity: Minor
                            Found in rails/app/assets/javascripts/rails.js - About 35 mins to fix

                              Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                    "CHILD": function( type, what, argument, first, last ) {
                              Severity: Minor
                              Found in rails/app/assets/javascripts/prototype.js - About 35 mins to fix

                                Function perpendicularIntersect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    perpendicularIntersect: function( x1, y1, angle, x2, y2 ) {
                                Severity: Minor
                                Found in rails/app/assets/javascripts/pie/PIE_uncompressed.js - About 35 mins to fix

                                  Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      remove: function( elem, types, handler, selector, mappedTypes ) {
                                  Severity: Minor
                                  Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix

                                    Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    function Tween( elem, options, prop, end, easing ) {
                                    Severity: Minor
                                    Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix

                                      Function select has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      function select( selector, context, results, seed, xml ) {
                                      Severity: Minor
                                      Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix

                                        Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            add: function( elem, types, handler, data, selector ) {
                                        Severity: Minor
                                        Found in rails/app/assets/javascripts/jquery/jquery.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language