suitmedia/suitcoda

View on GitHub

Showing 552 of 784 total issues

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

/*!
 * jQuery JavaScript Library v1.11.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in _frontend/assets/js/vendor/jquery.min.js - About 2 wks to fix

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

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

      File yslow.js has 6546 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * Copyright (c) 2012, Yahoo! Inc.  All rights reserved.
       * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
       */
      var i, arg, page, urlCount, viewport, webpage = require("webpage"),
      Severity: Major
      Found in performance/yslow.js - About 2 wks to fix

        Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        (function( window ) {
        
        var i,
            support,
            Expr,
        Severity: Major
        Found in _frontend/assets/js/vendor/jquery.min.js - About 6 days to fix

          Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          (function( window ) {
          
          var i,
              support,
              Expr,
          Severity: Major
          Found in _frontend/dev/js/vendor/jquery.js - About 6 days to fix

            Consider simplifying this complex logical expression.
            Open

                    if (m !== "success") {
                        console.log("FAIL to load " + d)
                    } else {
                        n = new Date() - e;
                        for (d in h) {
            Severity: Critical
            Found in performance/yslow.js - About 3 days to fix

              Function Modernizr has 587 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              window.Modernizr = (function( window, document, undefined ) {
              
                  var version = '2.8.3',
              
                  Modernizr = {},
              Severity: Major
              Found in _frontend/assets/js/vendor/modernizr.min.js - About 2 days to fix

                Function Modernizr has 587 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                window.Modernizr = (function( window, document, undefined ) {
                
                    var version = '2.8.3',
                
                    Modernizr = {},
                Severity: Major
                Found in _frontend/dev/js/vendor/modernizr.js - About 2 days to fix

                  Function Modernizr has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
                  Open

                  window.Modernizr = (function( window, document, undefined ) {
                  
                      var version = '2.8.3',
                  
                      Modernizr = {},
                  Severity: Minor
                  Found in _frontend/assets/js/vendor/modernizr.min.js - About 2 days 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 Modernizr has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
                  Open

                  window.Modernizr = (function( window, document, undefined ) {
                  
                      var version = '2.8.3',
                  
                      Modernizr = {},
                  Severity: Minor
                  Found in _frontend/dev/js/vendor/modernizr.js - About 2 days 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

                  File jquery-barIndicator.min.js has 903 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                  *    jQuery - barIndicator
                  *    A jQuery plugin that helps you visualize percentage or absolute amounts with bars
                  *    Author: Ioannis Kapantzakis
                  *    Released under the MIT License
                  Severity: Major
                  Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js - About 2 days to fix

                    File modernizr.min.js has 623 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /* Modernizr 2.8.3 (Custom Build) | MIT & BSD
                     * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-textshadow-cssanimations-csscolumns-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-css_calc-css_lastchild-css_mediaqueries-css_positionsticky-img_webp-load
                     */
                    ;
                    
                    
                    Severity: Major
                    Found in _frontend/assets/js/vendor/modernizr.min.js - About 1 day to fix

                      File modernizr.js has 623 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /* Modernizr 2.8.3 (Custom Build) | MIT & BSD
                       * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-textshadow-cssanimations-csscolumns-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-css_calc-css_lastchild-css_mediaqueries-css_positionsticky-img_webp-load
                       */
                      ;
                      
                      
                      Severity: Major
                      Found in _frontend/dev/js/vendor/modernizr.js - About 1 day to fix

                        Function _init has 247 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _init: function() {
                                    var that = this;
                                    var $el = that.$el;
                                    var opt = that.opt;
                                    var selector = that.selector;
                        Severity: Major
                        Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js - About 1 day to fix

                          Function ajax has 240 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 _frontend/assets/js/vendor/jquery.min.js - About 1 day to fix

                            Function ajax has 240 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 _frontend/dev/js/vendor/jquery.js - About 1 day to fix

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

                              setDocument = Sizzle.setDocument = function( node ) {
                                  var hasCompare, parent,
                                      doc = node ? node.ownerDocument || node : preferredDoc;
                              
                                  // If no document and documentElement is available, return
                              Severity: Major
                              Found in _frontend/assets/js/vendor/jquery.min.js - About 1 day to fix

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

                                setDocument = Sizzle.setDocument = function( node ) {
                                    var hasCompare, parent,
                                        doc = node ? node.ownerDocument || node : preferredDoc;
                                
                                    // If no document and documentElement is available, return
                                Severity: Major
                                Found in _frontend/dev/js/vendor/jquery.js - About 1 day to fix

                                  File ResultReaderTest.php has 469 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  namespace SuitTests\Supports;
                                  
                                  use Illuminate\Foundation\Testing\DatabaseTransactions;
                                  Severity: Minor
                                  Found in tests/Supports/ResultReaderTest.php - About 7 hrs to fix

                                    Function run has 162 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                    YSLOW.phantomjs.run = function() {
                                                        try {
                                                            var D, z, A, u, K = document,
                                                                F = YSLOW,
                                                                x = new F.context(K),
                                    Severity: Major
                                    Found in performance/yslow.js - About 6 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language