suitmedia/suitcoda

View on GitHub

Showing 784 of 784 total issues

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

FastClick.prototype.onClick = function(event) {
    'use strict';
    var permitted;

    // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
Severity: Major
Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 5 hrs to fix
_frontend/dev/js/vendor/fastclick.js on lines 649..674

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

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.onClick = function(event) {
    'use strict';
    var permitted;

    // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
Severity: Major
Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 5 hrs to fix
_frontend/assets/js/vendor/fastclick.min.js on lines 649..674

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

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

  Plugin.prototype.init = function () {
    var userOpts = this.settings;

    
    /**
Severity: Major
Found in _frontend/assets/js/vendor/baze.validate.min.js - About 5 hrs to fix

    Function init has 129 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Plugin.prototype.init = function () {
        var userOpts = this.settings;
    
        
        /**
    Severity: Major
    Found in _frontend/dev/js/vendor/baze.validate.js - About 5 hrs to fix

      Function Callbacks has 128 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 _frontend/assets/js/vendor/jquery.min.js - About 5 hrs to fix

        Function Callbacks has 128 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 _frontend/dev/js/vendor/jquery.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 _frontend/assets/js/vendor/jquery.min.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 _frontend/dev/js/vendor/jquery.js - About 5 hrs to fix

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

              FastClick.prototype.needsClick = function(target) {
                  'use strict';
                  switch (target.nodeName.toLowerCase()) {
              
                  // Don't send a synthetic click to disabled inputs (issue #62)
              Severity: Major
              Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 5 hrs to fix
              _frontend/dev/js/vendor/fastclick.js on lines 208..235

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

              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.needsClick = function(target) {
                  'use strict';
                  switch (target.nodeName.toLowerCase()) {
              
                  // Don't send a synthetic click to disabled inputs (issue #62)
              Severity: Major
              Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 5 hrs to fix
              _frontend/assets/js/vendor/fastclick.min.js on lines 208..235

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

              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('csspositionsticky', function () {
              
                  var prop = 'position:';
                  var value = 'sticky';
                  var el = document.createElement('modernizr');
              Severity: Major
              Found in _frontend/assets/js/vendor/modernizr.min.js and 1 other location - About 4 hrs to fix
              _frontend/dev/js/vendor/modernizr.js on lines 855..865

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

              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('csspositionsticky', function () {
              
                  var prop = 'position:';
                  var value = 'sticky';
                  var el = document.createElement('modernizr');
              Severity: Major
              Found in _frontend/dev/js/vendor/modernizr.js and 1 other location - About 4 hrs to fix
              _frontend/assets/js/vendor/modernizr.min.js on lines 855..865

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

              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 fastclick.min.js has 366 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
               *
               * @version 0.6.9
               * @codingstandard ftlabs-jsv2
              Severity: Minor
              Found in _frontend/assets/js/vendor/fastclick.min.js - About 4 hrs to fix

                File fastclick.js has 366 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
                 *
                 * @version 0.6.9
                 * @codingstandard ftlabs-jsv2
                Severity: Minor
                Found in _frontend/dev/js/vendor/fastclick.js - About 4 hrs to fix

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

                  FastClick.prototype.needsFocus = function(target) {
                      'use strict';
                      switch (target.nodeName.toLowerCase()) {
                      case 'textarea':
                      case 'select':
                  Severity: Major
                  Found in _frontend/assets/js/vendor/fastclick.min.js and 1 other location - About 4 hrs to fix
                  _frontend/dev/js/vendor/fastclick.js on lines 244..266

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

                  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

                  fs.exists(program.destination, function (exists) {
                      if ( !exists ) {
                          fs.mkdirsSync( program.destination );
                      }
                      dest = './' + program.destination;
                  Severity: Major
                  Found in performance/pagespeedDesktop.js and 1 other location - About 4 hrs to fix
                  performance/pagespeedMobile.js on lines 20..34

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

                  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.needsFocus = function(target) {
                      'use strict';
                      switch (target.nodeName.toLowerCase()) {
                      case 'textarea':
                      case 'select':
                  Severity: Major
                  Found in _frontend/dev/js/vendor/fastclick.js and 1 other location - About 4 hrs to fix
                  _frontend/assets/js/vendor/fastclick.min.js on lines 244..266

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

                  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

                  fs.exists(program.destination, function (exists) {
                      if ( !exists ) {
                          fs.mkdirsSync( program.destination );
                      }
                      dest = './' + program.destination;
                  Severity: Major
                  Found in performance/pagespeedMobile.js and 1 other location - About 4 hrs to fix
                  performance/pagespeedDesktop.js on lines 20..34

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

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

                          _getMilestones: function(par) {
                              if (par) {
                                  var that = par.that;
                                  var $el = that.$el;    
                                  var $elID = $el.attr('id');
                  Severity: Major
                  Found in _frontend/assets/js/vendor/jquery-barIndicator.min.js - About 4 hrs to fix

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

                    function check(url) {
                    
                        var Horseman    = require('node-horseman'),
                            horseman    = new Horseman();
                    
                    
                    Severity: Major
                    Found in socmed/opengraph.js - About 4 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language