asmallwebfirm/gsa-clicks

View on GitHub

Showing 178 of 178 total issues

File jquery.js has 6540 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.9.0
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in libs/jquery/jquery.js - About 2 wks to fix

    File qunit.js has 1567 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * QUnit v1.11.0 - A JavaScript Unit Testing Framework
     *
     * http://qunitjs.com
     *
    Severity: Major
    Found in libs/qunit/qunit.js - About 4 days to fix

      Function ajax has 237 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;
      Severity: Major
      Found in libs/jquery/jquery.js - About 1 day to fix

        Function setDocument has 232 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        setDocument = Sizzle.setDocument = function( node ) {
            var doc = node ? node.ownerDocument || node : preferredDoc;
        
            // If no document and documentElement is available, return
            if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
        Severity: Major
        Found in libs/jquery/jquery.js - About 1 day to fix

          Function jsDump has 187 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          QUnit.jsDump = (function() {
              function quote( str ) {
                  return '"' + str.toString().replace( /"/g, '\\"' ) + '"';
              }
              function literal( o ) {
          Severity: Major
          Found in libs/qunit/qunit.js - About 7 hrs to fix

            Function Callbacks has 127 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jQuery.Callbacks = function( options ) {
            
                // Convert options from String-formatted to Object-formatted if needed
                // (we check in cache first)
                options = typeof options === "string" ?
            Severity: Major
            Found in libs/jquery/jquery.js - About 5 hrs to fix

              Function equiv has 126 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              QUnit.equiv = (function() {
              
                  // Call the o related callback with the given arguments.
                  function bindCallbacks( o, callbacks, args ) {
                      var prop = QUnit.objectType( o );
              Severity: Major
              Found in libs/qunit/qunit.js - About 5 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( event.pageX == null && original.clientX != null ) {
                                eventDoc = event.target.ownerDocument || document;
                                doc = eventDoc.documentElement;
                                body = eventDoc.body;
                
                
                Severity: Critical
                Found in libs/jquery/jquery.js - About 5 hrs to fix

                  Function support has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  jQuery.support = (function() {
                  
                      var support, all, a, select, opt, input, fragment, eventName, isSupported, i,
                          div = document.createElement("div");
                  
                  
                  Severity: Major
                  Found in libs/jquery/jquery.js - About 4 hrs to fix

                    Function diff has 114 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    QUnit.diff = (function() {
                        /*jshint eqeqeq:false, eqnull:true */
                        function diff( o, n ) {
                            var i,
                                ns = {},
                    Severity: Major
                    Found in libs/qunit/qunit.js - About 4 hrs to fix

                      Function load has 110 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      QUnit.load = function() {
                          runLoggingCallbacks( "begin", QUnit, {} );
                      
                          // Initialize the config, saving the execution queue
                          var banner, filter, i, label, len, main, ol, toolbar, userAgent, val,
                      Severity: Major
                      Found in libs/qunit/qunit.js - About 4 hrs to fix

                        Function exports has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        module.exports = function(grunt) {
                        
                          // Project configuration.
                          grunt.initConfig({
                            // Metadata.
                        Severity: Major
                        Found in Gruntfile.js - About 4 hrs to fix

                          Function defaultPrefilter has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function defaultPrefilter( elem, props, opts ) {
                              /*jshint validthis:true */
                              var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
                                  anim = this,
                                  style = elem.style,
                          Severity: Major
                          Found in libs/jquery/jquery.js - About 3 hrs to fix

                            Function callbacks has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    callbacks = (function () {
                            
                                        // for string, boolean, number and null
                                        function useStrictEquality( b, a ) {
                                            /*jshint eqeqeq:false */
                            Severity: Major
                            Found in libs/qunit/qunit.js - About 3 hrs to fix

                              Function finish has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  finish: function() {
                                      config.current = this;
                                      if ( config.requireExpects && this.expected === null ) {
                                          QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack );
                                      } else if ( this.expected !== null && this.expected !== this.assertions.length ) {
                              Severity: Major
                              Found in libs/qunit/qunit.js - About 3 hrs to fix

                                Function send has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                send: function( headers, complete ) {
                                
                                                    // Get a new xhr
                                                    var handle, i,
                                                        xhr = s.xhr();
                                Severity: Major
                                Found in libs/jquery/jquery.js - About 3 hrs to fix

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              if ( n[i].text != null && n[ i + 1 ].text == null && n[i].row + 1 < o.length && o[ n[i].row + 1 ].text == null &&
                                                          n[ i + 1 ] == o[ n[i].row + 1 ] ) {
                                  
                                                  n[ i + 1 ] = {
                                                      text: n[ i + 1 ],
                                  Severity: Major
                                  Found in libs/qunit/qunit.js and 1 other location - About 3 hrs to fix
                                  libs/qunit/qunit.js on lines 2070..2081

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 104.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              if ( n[i].text != null && n[ i - 1 ].text == null && n[i].row > 0 && o[ n[i].row - 1 ].text == null &&
                                                          n[ i - 1 ] == o[ n[i].row - 1 ]) {
                                  
                                                  n[ i - 1 ] = {
                                                      text: n[ i - 1 ],
                                  Severity: Major
                                  Found in libs/qunit/qunit.js and 1 other location - About 3 hrs to fix
                                  libs/qunit/qunit.js on lines 2055..2066

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 104.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Function trigger has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      trigger: function( event, data, elem, onlyHandlers ) {
                                  
                                          var i, cur, tmp, bubbleType, ontype, handle, special,
                                              eventPath = [ elem || document ],
                                              type = event.type || event,
                                  Severity: Major
                                  Found in libs/jquery/jquery.js - About 3 hrs to fix

                                    Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function Animation( elem, properties, options ) {
                                        var result,
                                            stopped,
                                            index = 0,
                                            length = animationPrefilters.length,
                                    Severity: Major
                                    Found in libs/jquery/jquery.js - About 3 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language