suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

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

function defaultPrefilter( elem, props, opts ) {
    /* jshint validthis: true */
    var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
        anim = this,
        orig = {},
Severity: Major
Found in _frontend/assets/js/vendor/jquery.min.js - About 4 hrs to fix

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

    function defaultPrefilter( elem, props, opts ) {
        /* jshint validthis: true */
        var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
            anim = this,
            orig = {},
    Severity: Major
    Found in _frontend/dev/js/vendor/jquery.js - About 4 hrs to fix

      File project_detail.blade.php has 337 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      @extends('_layouts.pages')
      
      @section('title', 'Project Detail')
      
      @section('main-content')
      Severity: Minor
      Found in resources/views/project_detail.blade.php - About 4 hrs to fix

        Function setAfterOnload has 102 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                            setAfterOnload: function(s, y) {
                                var A, F, I, x, C, q, u, v, N, z, L, t, w, r = YSLOW.util,
                                    D = r.addEventListener,
                                    E = r.removeEventListener,
                                    K = setTimeout,
        Severity: Major
        Found in performance/yslow.js - About 4 hrs to fix

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

              if ( getTc === "app" ) {
                  tcAppElem.forEach(function (value,index) {
                      var isExist = horseman.exists( value );
          
                      if ( !isExist ) {
          Severity: Major
          Found in socmed/twittercard.js and 1 other location - About 4 hrs to fix
          socmed/twittercard.js on lines 98..112

          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 115.

          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 ( getTc === "player" ) {
                  tcPlayerElem.forEach(function (value, index) {
                      var isExist = horseman.exists( value );
          
                      if ( !isExist ) {
          Severity: Major
          Found in socmed/twittercard.js and 1 other location - About 4 hrs to fix
          socmed/twittercard.js on lines 82..96

          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 115.

          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 lint has 98 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                              lint: function(Q, v, P) {
                                  var I, G, u, F, w, A, M, K, N, O, t, s, J = 100,
                                      r = [],
                                      L = [],
                                      z = "",
          Severity: Major
          Found in performance/yslow.js - About 3 hrs to fix

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

            FastClick.prototype.touchHasMoved = function(event) {
                'use strict';
                var touch = event.changedTouches[0], boundary = this.touchBoundary;
            
                if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
            Severity: Major
            Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 3 hrs to fix
            _frontend/assets/js/vendor/fastclick.min.js on lines 431..440

            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 113.

            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

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

            FastClick.prototype.touchHasMoved = function(event) {
                'use strict';
                var touch = event.changedTouches[0], boundary = this.touchBoundary;
            
                if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
            Severity: Major
            Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 3 hrs to fix
            _frontend/dev/js/vendor/fastclick.js on lines 431..440

            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 113.

            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

                                    for (x = 0, z = t.length; x < z; x += 1) {
                                        if (t[x] === "all") {
                                            s = w = q = true;
                                            break
                                        } else {
            Severity: Major
            Found in performance/yslow.js and 1 other location - About 3 hrs to fix
            performance/yslow.js on lines 1600..1617

            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 113.

            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

                                    for (O = 0, Q = S.length; O < Q; O += 1) {
                                        if (S[O] === "all") {
                                            I = E = s = true;
                                            break
                                        } else {
            Severity: Major
            Found in performance/yslow.js and 1 other location - About 3 hrs to fix
            performance/yslow.js on lines 1806..1823

            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 113.

            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

            File CrawlerUrlTest.php has 326 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            namespace SuitTests\Supports;
            
            use GuzzleHttp\Client;
            Severity: Minor
            Found in tests/Supports/CrawlerUrlTest.php - About 3 hrs to fix

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

                                          for (s in q.req_headers) {
                                              if (q.req_headers.hasOwnProperty(s) && q.req_headers[s]) {
                                                  r += '<tr><td class="param-name">' + YSLOW.util.escapeHtml(YSLOW.util.formatHeaderName(s)) + '</td><td class="param-value"><p>' + YSLOW.util.escapeHtml(q.req_headers[s]) + "</p></td></tr>"
                                              }
                                          }
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 3 hrs to fix
              performance/yslow.js on lines 4883..4887

              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 111.

              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

                                      for (s in q.headers) {
                                          if (q.headers.hasOwnProperty(s) && q.headers[s]) {
                                              r += '<tr><td class="param-name">' + YSLOW.util.escapeHtml(YSLOW.util.formatHeaderName(s)) + '</td><td class="param-value">' + YSLOW.util.escapeHtml(q.headers[s]) + "</td></tr>"
                                          }
                                      }
              Severity: Major
              Found in performance/yslow.js and 1 other location - About 3 hrs to fix
              performance/yslow.js on lines 4890..4894

              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 111.

              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 genComponentRow has 92 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function reportcardView has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                    reportcardView: function(s) {
                                        var w, H, F, E, x, r, v, L, B, I, K, J, q, u, y = '<div id="reportDiv">',
                                            G = s.getRulesetApplied(),
                                            A = s.getResults(),
                                            t = s.url,
                Severity: Major
                Found in performance/yslow.js - About 3 hrs to fix

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

                  FastClick.prototype.onTouchMove = function(event) {
                      'use strict';
                      if (!this.trackingClick) {
                          return true;
                      }
                  Severity: Major
                  Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 3 hrs to fix
                  _frontend/assets/js/vendor/fastclick.min.js on lines 449..462

                  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 108.

                  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

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

                  FastClick.prototype.onTouchMove = function(event) {
                      'use strict';
                      if (!this.trackingClick) {
                          return true;
                      }
                  Severity: Major
                  Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 3 hrs to fix
                  _frontend/dev/js/vendor/fastclick.js on lines 449..462

                  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 108.

                  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

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

                  (function(){
                  
                    var image = new Image();
                  
                    image.onerror = function() {
                  Severity: Major
                  Found in _frontend/assets/js/vendor/modernizr.min.js and 1 other location - About 3 hrs to fix
                  _frontend/dev/js/vendor/modernizr.js on lines 874..887

                  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 108.

                  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

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

                  (function(){
                  
                    var image = new Image();
                  
                    image.onerror = function() {
                  Severity: Major
                  Found in _frontend/dev/js/vendor/modernizr.js and 1 other location - About 3 hrs to fix
                  _frontend/assets/js/vendor/modernizr.min.js on lines 874..887

                  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 108.

                  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

                  Severity
                  Category
                  Status
                  Source
                  Language