suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.extend = jQuery.fn.extend = function() {
    var src, copyIsArray, copy, name, options, clone,
        target = arguments[0] || {},
        i = 1,
        length = arguments.length,
Severity: Minor
Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

    Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        val: function( value ) {
            var hooks, ret, isFunction,
                elem = this[0];
    
            if ( !arguments.length ) {
    Severity: Minor
    Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

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

                                  if (typeof z === "object" && typeof z.getTime === "function") {
                                      x = new Date().getTime();
                                      if (z.getTime() > x + t) {
                                          continue
                                      }
      Severity: Major
      Found in performance/yslow.js and 1 other location - About 1 hr to fix
      performance/yslow.js on lines 2738..2743

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

      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 (typeof z === "object" && typeof z.getTime === "function") {
                                      x = new Date().getTime();
                                      if (z.getTime() > x + u) {
                                          continue
                                      }
      Severity: Major
      Found in performance/yslow.js and 1 other location - About 1 hr to fix
      performance/yslow.js on lines 3080..3085

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

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

                          summaryByDomain: function(r, B, s) {
                              var x, w, A, v, C, u, y, t, D, z, E = {},
                                  q = [];
                              B = [].concat(B);
                              t = B.length;
      Severity: Minor
      Found in performance/yslow.js - About 1 hr to fix

        Function addComponent has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                            addComponent: function(t, u, r, w) {
                                var q, v, s;
                                if (!t) {
                                    if (!this.empty_url) {
                                        this.empty_url = []
        Severity: Minor
        Found in performance/yslow.js - About 1 hr to fix

          Function findImportedStyleSheets has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                              findImportedStyleSheets: function(z, q) {
                                  var t, A, x, u, r, v, y = /url\s*\(["']*([^"'\)]+)["']*\)/i,
                                      s = [];
                                  try {
                                      if (!(A = z.cssRules)) {
          Severity: Minor
          Found in performance/yslow.js - About 1 hr to fix

            Function addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function addCombinator( matcher, combinator, base ) {
                var dir = combinator.dir,
                    checkNonElements = base && dir === "parentNode",
                    doneName = done++;
            
            
            Severity: Minor
            Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

              Function computeStyleTests has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function computeStyleTests() {
                      // Minified: var b,c,d,j
                      var div, body, container, contents;
              
                      body = document.getElementsByTagName( "body" )[ 0 ];
              Severity: Minor
              Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                Function addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function addCombinator( matcher, combinator, base ) {
                    var dir = combinator.dir,
                        checkNonElements = base && dir === "parentNode",
                        doneName = done++;
                
                
                Severity: Minor
                Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

                  Function computeStyleTests has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function computeStyleTests() {
                          // Minified: var b,c,d,j
                          var div, body, container, contents;
                  
                          body = document.getElementsByTagName( "body" )[ 0 ];
                  Severity: Minor
                  Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

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

                                                if (typeof v.filter_count === "undefined") {
                                                    D = YSLOW.util.countAlphaImageLoaderFilter(v.body);
                                                    v.filter_count = D
                                                } else {
                                                    D = v.filter_count
                    Severity: Major
                    Found in performance/yslow.js and 2 other locations - About 1 hr to fix
                    performance/yslow.js on lines 2847..2852
                    performance/yslow.js on lines 2947..2952

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

                    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 3 locations. Consider refactoring.
                    Open

                                                if (typeof u.expr_count === "undefined") {
                                                    A = YSLOW.util.countExpressions(u.body);
                                                    u.expr_count = A
                                                } else {
                                                    A = u.expr_count
                    Severity: Major
                    Found in performance/yslow.js and 2 other locations - About 1 hr to fix
                    performance/yslow.js on lines 2947..2952
                    performance/yslow.js on lines 3240..3245

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

                    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 3 locations. Consider refactoring.
                    Open

                                                if (typeof v.minified === "undefined") {
                                                    z = YSLOW.util.isMinified(v.body);
                                                    v.minified = z
                                                } else {
                                                    z = v.minified
                    Severity: Major
                    Found in performance/yslow.js and 2 other locations - About 1 hr to fix
                    performance/yslow.js on lines 2847..2852
                    performance/yslow.js on lines 3240..3245

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

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

                        each: function( obj, callback, args ) {
                            var value,
                                i = 0,
                                length = obj.length,
                                isArray = isArraylike( obj );
                    Severity: Minor
                    Found in _frontend/assets/js/vendor/jquery.min.js - About 1 hr to fix

                      Function check has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function check(url) {
                      
                          var Horseman    = require('node-horseman'),
                              horseman    = new Horseman();
                      
                      
                      Severity: Minor
                      Found in socmed/fbinsight.js - About 1 hr to fix

                        Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            each: function( obj, callback, args ) {
                                var value,
                                    i = 0,
                                    length = obj.length,
                                    isArray = isArraylike( obj );
                        Severity: Minor
                        Found in _frontend/dev/js/vendor/jquery.js - About 1 hr to fix

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

                          Modernizr.addTest('lastchild', function(){
                          
                            return Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function (elem) {
                              return elem.lastChild.offsetWidth > elem.firstChild.offsetWidth;
                            }, 2);
                          Severity: Major
                          Found in _frontend/dev/js/vendor/modernizr.js and 1 other location - About 1 hr to fix
                          _frontend/assets/js/vendor/modernizr.min.js on lines 834..840

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

                          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

                          Modernizr.addTest('lastchild', function(){
                          
                            return Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function (elem) {
                              return elem.lastChild.offsetWidth > elem.firstChild.offsetWidth;
                            }, 2);
                          Severity: Major
                          Found in _frontend/assets/js/vendor/modernizr.min.js and 1 other location - About 1 hr to fix
                          _frontend/dev/js/vendor/modernizr.js on lines 834..840

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

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

                                              rulesetEditView: function(D) {
                                                  var s, B, u, t, w = '<div id="settingsDiv" class="yui-navset yui-navset-left">',
                                                      C, z, y = 0,
                                                      r = false,
                                                      q, v, A = "Rule Settings",
                          Severity: Minor
                          Found in performance/yslow.js - About 1 hr to fix
                            Severity
                            Category
                            Status
                            Source
                            Language