JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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

jQuery.noConflict = function( deep ) {
    if ( window.$ === jQuery ) {
        window.$ = _$;
    }

Severity: Major
Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
app/bower_components/jquery/src/exports/global.js on lines 13..23

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

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

    initialize: function Rectangle(arg0, arg1, arg2, arg3) {
        var type = typeof arg0,
            read = 0;
        if (type === 'number') {
            this.x = arg0;
Severity: Major
Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

    Function Rectangle has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        initialize: function Rectangle(arg0, arg1, arg2, arg3) {
            var type = typeof arg0,
                read = 0;
            if (type === 'number') {
                this.x = arg0;
    Severity: Major
    Found in app/bower_components/paper/dist/paper-full.js - About 2 hrs to fix

      Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function ajaxConvert( s, response, jqXHR, isSuccess ) {
          var conv2, current, conv, tmp, prev,
              converters = {},
              // Work with a copy of dataTypes in case we need to modify it for conversion
              dataTypes = s.dataTypes.slice();
      Severity: Major
      Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix

        Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function ajaxConvert( s, response, jqXHR, isSuccess ) {
            var conv2, current, conv, tmp, prev,
                converters = {},
                // Work with a copy of dataTypes in case we need to modify it for conversion
                dataTypes = s.dataTypes.slice();
        Severity: Major
        Found in app/bower_components/jquery/src/ajax.js - About 2 hrs to fix

          Function exports has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          module.exports = function(grunt) {
             'use strict';
          
             grunt.initConfig({
                pkg: grunt.file.readJSON('package.json'),
          Severity: Major
          Found in app/bower_components/angularitics/Gruntfile.js - About 2 hrs to fix

            Function _hitTest has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _hitTest: function(point, options) {
                    if (this._locked || !this._visible || this._guide && !options.guides
                            || this.isEmpty())
                        return null;
            
            
            Severity: Major
            Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

              Function _hitTest has 55 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _hitTest: function(point, options) {
                      if (this._locked || !this._visible || this._guide && !options.guides
                              || this.isEmpty())
                          return null;
              
              
              Severity: Major
              Found in app/bower_components/paper/dist/paper-full.js - About 2 hrs to fix

                Function ngViewFactory has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function ngViewFactory(   $route,   $anchorScroll,   $animate) {
                  return {
                    restrict: 'ECA',
                    terminal: true,
                    priority: 400,
                Severity: Major
                Found in app/bower_components/angular-route/angular-route.js - About 2 hrs to fix

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

                  function setGlobalEval( elems, refElements ) {
                      var i = 0,
                          l = elems.length;
                  
                      for ( ; i < l; i++ ) {
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                  app/bower_components/jquery/src/manipulation.js on lines 78..87

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

                  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 setGlobalEval( elems, refElements ) {
                      var i = 0,
                          l = elems.length;
                  
                      for ( ; i < l; i++ ) {
                  Severity: Major
                  Found in app/bower_components/jquery/src/manipulation.js and 1 other location - About 2 hrs to fix
                  app/bower_components/jquery/dist/jquery.js on lines 4947..4956

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

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

                  // Generated on 2014-03-06 using generator-angular 0.7.1
                  'use strict';
                  
                  // # Globbing
                  // for performance reasons we're only matching one level down:
                  Severity: Minor
                  Found in Gruntfile.js - About 2 hrs to fix

                    Function _events has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _events: new function() {
                    
                            var mouseFlags = {
                                mousedown: {
                                    mousedown: 1,
                    Severity: Major
                    Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

                      Function _events has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _events: new function() {
                      
                              var mouseFlags = {
                                  mousedown: {
                                      mousedown: 1,
                      Severity: Major
                      Found in app/bower_components/paper/dist/paper-full.js - About 2 hrs to fix

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

                        jQuery.fx.timer = function( timer ) {
                            jQuery.timers.push( timer );
                            if ( timer() ) {
                                jQuery.fx.start();
                            } else {
                        Severity: Major
                        Found in app/bower_components/jquery/src/effects.js and 1 other location - About 2 hrs to fix
                        app/bower_components/jquery/dist/jquery.js on lines 6837..6844

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

                        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

                        jQuery.fx.timer = function( timer ) {
                            jQuery.timers.push( timer );
                            if ( timer() ) {
                                jQuery.fx.start();
                            } else {
                        Severity: Major
                        Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                        app/bower_components/jquery/src/effects.js on lines 619..626

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

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

                            data: function( key, value ) {
                                var i, name, data,
                                    elem = this[ 0 ],
                                    attrs = elem && elem.attributes;
                        
                        
                        Severity: Major
                        Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                          Function send has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      send: function( headers, complete ) {
                                          var i,
                                              xhr = options.xhr(),
                                              id = ++xhrId;
                          
                          
                          Severity: Major
                          Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                            Function _storageFactory has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _storageFactory(storageType) {
                                    return [
                                        '$rootScope',
                                        '$window',
                            
                            
                            Severity: Major
                            Found in app/bower_components/ngstorage/ngStorage.js - About 2 hrs to fix

                              Function send has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          send: function( headers, complete ) {
                                              var i,
                                                  xhr = options.xhr(),
                                                  id = ++xhrId;
                              
                              
                              Severity: Major
                              Found in app/bower_components/jquery/src/ajax/xhr.js - About 2 hrs to fix
                                Severity
                                Category
                                Status
                                Source
                                Language