suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    buildFragment: function( elems, context, scripts, selection ) {
        var j, elem, contains,
            tmp, tag, tbody, wrap,
            l = elems.length,

Severity: Major
Found in _frontend/dev/js/vendor/jquery.js - About 2 hrs to fix

    Function setInjected has 73 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                        setInjected: function(A, t, y) {
                            var w, z, v, u, q, x, B, s, r = {};
                            if (!y) {
                                return t
                            }
    Severity: Major
    Found in performance/yslow.js - About 2 hrs to fix

      Function add has 73 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          add: function( elem, types, handler, data, selector ) {
              var tmp, events, t, handleObjIn,
                  special, eventHandle, handleObj,
                  handlers, type, namespaces, origType,
                  elemData = jQuery._data( elem );
      Severity: Major
      Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix

        Function add has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            add: function( elem, types, handler, data, selector ) {
                var tmp, events, t, handleObjIn,
                    special, eventHandle, handleObj,
                    handlers, type, namespaces, origType,
                    elemData = jQuery._data( elem );
        Severity: Major
        Found in _frontend/dev/js/vendor/jquery.js - About 2 hrs to fix

          Function onTouchEnd has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

          FastClick.prototype.onTouchEnd = function(event) {
              'use strict';
              var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
          
              if (!this.trackingClick) {
          Severity: Minor
          Found in _frontend/assets/js/vendor/fastclick.min.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function onTouchEnd has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

          FastClick.prototype.onTouchEnd = function(event) {
              'use strict';
              var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
          
              if (!this.trackingClick) {
          Severity: Minor
          Found in _frontend/dev/js/vendor/fastclick.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function findDocuments has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                              findDocuments: function(r) {
                                  var y, B, u, z, v, w, q, C, A, s = {};
                                  YSLOW.util.event.fire("peelProgress", {
                                      total_step: 7,
                                      current_step: 1,
          Severity: Major
          Found in performance/yslow.js - About 2 hrs to fix

            Function _getAverage has 72 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    _getAverage: function(par) {
                        if (par) {
                            var that = par.that;
                            var $el = that.$el;
                            var opt = that.opt;
            Severity: Major
            Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js - About 2 hrs to fix

              Function prettyPrintResults has 71 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                                  prettyPrintResults: function(u) {
                                      var s, r = YSLOW.util,
                                          v = "",
                                          t = {},
                                          w = {
              Severity: Major
              Found in performance/yslow.js - About 2 hrs to fix

                Function FastClick has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                Open

                function FastClick(layer) {
                    'use strict';
                    var oldOnClick, self = this;
                
                
                
                Severity: Minor
                Found in _frontend/assets/js/vendor/fastclick.min.js - About 2 hrs to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function FastClick has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                Open

                function FastClick(layer) {
                    'use strict';
                    var oldOnClick, self = this;
                
                
                
                Severity: Minor
                Found in _frontend/dev/js/vendor/fastclick.js - About 2 hrs to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                    var bySet = setMatchers.length > 0,
                        byElement = elementMatchers.length > 0,
                        superMatcher = function( seed, context, xml, results, outermost ) {
                            var elem, j, matcher,
                Severity: Major
                Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix

                  Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                      var bySet = setMatchers.length > 0,
                          byElement = elementMatchers.length > 0,
                          superMatcher = function( seed, context, xml, results, outermost ) {
                              var elem, j, matcher,
                  Severity: Major
                  Found in _frontend/dev/js/vendor/jquery.js - About 2 hrs to fix

                    Function testResults has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                        testResults: function(y, s) {
                                            var C, H, r, z, E, t, D, F, v = [],
                                                B = {
                                                    a: 90,
                                                    b: 80,
                    Severity: Major
                    Found in performance/yslow.js - About 2 hrs to fix

                      Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function done( status, nativeStatusText, responses, headers ) {
                                  var isSuccess, success, error, response, modified,
                                      statusText = nativeStatusText;
                      
                                  // Called once
                      Severity: Major
                      Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix

                        Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function done( status, nativeStatusText, responses, headers ) {
                                    var isSuccess, success, error, response, modified,
                                        statusText = nativeStatusText;
                        
                                    // Called once
                        Severity: Major
                        Found in _frontend/dev/js/vendor/jquery.js - About 2 hrs to fix

                          Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                              if ( postFilter && !postFilter[ expando ] ) {
                                  postFilter = setMatcher( postFilter );
                              }
                              if ( postFinder && !postFinder[ expando ] ) {
                          Severity: Major
                          Found in _frontend/assets/js/vendor/jquery.min.js - About 2 hrs to fix

                            Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                if ( postFilter && !postFilter[ expando ] ) {
                                    postFilter = setMatcher( postFilter );
                                }
                                if ( postFinder && !postFinder[ expando ] ) {
                            Severity: Major
                            Found in _frontend/dev/js/vendor/jquery.js - About 2 hrs to fix

                              ProjectTest has 23 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class ProjectTest extends TestCase
                              {
                                  use DatabaseTransactions;
                              
                                  /**
                              Severity: Minor
                              Found in tests/Model/ProjectTest.php - About 2 hrs to fix

                                Function showTooltip has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                    showTooltip: function(G, w) {
                                                        var u, H, F, t, s, r, z, C = 10,
                                                            B = 0,
                                                            A = 0,
                                                            E = w.ownerDocument,
                                Severity: Major
                                Found in performance/yslow.js - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language