JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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

    _handleEvent: function(type, point, event) {
        paper = this._scope;
        var called = false;
        switch (type) {
        case 'mousedown':
Severity: Minor
Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
            var origFn, type;
    
            // Types can be a map of types/handlers
            if ( typeof types === "object" ) {
    Severity: Minor
    Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

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

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

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

            stop: function( type, clearQueue, gotoEnd ) {
                var stopQueue = function( hooks ) {
                    var stop = hooks.stop;
                    delete hooks.stop;
                    stop( gotoEnd );
        Severity: Minor
        Found in app/bower_components/jquery/dist/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 app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

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

                _handleEvent: function(type, point, event) {
                    paper = this._scope;
                    var called = false;
                    switch (type) {
                    case 'mousedown':
            Severity: Minor
            Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

              jQuery.extend = jQuery.fn.extend = function() {
                  var options, name, src, copy, copyIsArray, clone,
                      target = arguments[0] || {},
                      i = 1,
                      length = arguments.length,
              Severity: Minor
              Found in app/bower_components/jquery/src/core.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 app/bower_components/jquery/src/attributes/val.js - About 1 hr to fix

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

                      stop: function( type, clearQueue, gotoEnd ) {
                          var stopQueue = function( hooks ) {
                              var stop = hooks.stop;
                              delete hooks.stop;
                              stop( gotoEnd );
                  Severity: Minor
                  Found in app/bower_components/jquery/src/effects.js - About 1 hr to fix

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

                        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                            var origFn, type;
                    
                            // Types can be a map of types/handlers
                            if ( typeof types === "object" ) {
                    Severity: Minor
                    Found in app/bower_components/jquery/src/event.js - About 1 hr to fix

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

                      boolHook = {
                          set: function( elem, value, name ) {
                              if ( value === false ) {
                                  // Remove boolean attributes when set to false
                                  jQuery.removeAttr( elem, name );
                      Severity: Major
                      Found in app/bower_components/jquery/src/attributes/attr.js and 1 other location - About 1 hr to fix
                      app/bower_components/jquery/dist/jquery.js on lines 7015..7025

                      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 (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) {
                            return Math.max.apply(Math, obj);
                          }
                      Severity: Major
                      Found in app/bower_components/underscore/underscore.js and 1 other location - About 1 hr to fix
                      app/bower_components/underscore/underscore.js on lines 271..273

                      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

                      function createButtonPseudo( type ) {
                          return function( elem ) {
                              var name = elem.nodeName.toLowerCase();
                              return (name === "input" || name === "button") && elem.type === type;
                          };
                      Severity: Major
                      Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                      app/bower_components/jquery/dist/jquery.js on lines 954..959

                      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

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

                      boolHook = {
                          set: function( elem, value, name ) {
                              if ( value === false ) {
                                  // Remove boolean attributes when set to false
                                  jQuery.removeAttr( elem, name );
                      Severity: Major
                      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                      app/bower_components/jquery/src/attributes/attr.js on lines 114..124

                      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

                      function createButtonPseudo( type ) {
                          return function( elem ) {
                              var name = elem.nodeName.toLowerCase();
                              return (name === "input" || name === "button") && elem.type === type;
                          };
                      Severity: Major
                      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                      app/bower_components/jquery/src/sizzle/dist/sizzle.js on lines 405..410

                      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 (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) {
                            return Math.min.apply(Math, obj);
                          }
                      Severity: Major
                      Found in app/bower_components/underscore/underscore.js and 1 other location - About 1 hr to fix
                      app/bower_components/underscore/underscore.js on lines 255..257

                      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 TabsetCtrl has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                      Open

                      .controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
                        var ctrl = this,
                            tabs = ctrl.tabs = $scope.tabs = [];
                      
                        ctrl.select = function(selectedTab) {

                      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 TabsetCtrl has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                      Open

                      .controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
                        var ctrl = this,
                            tabs = ctrl.tabs = $scope.tabs = [];
                      
                        ctrl.select = function(selectedTab) {
                      Severity: Minor
                      Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr 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 matches has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          matches: function(match) {
                              function matchObject(obj1, obj2) {
                                  for (var i in obj1) {
                                      if (obj1.hasOwnProperty(i)) {
                                          var val1 = obj1[i],
                      Severity: Minor
                      Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

                            matches: function(match) {
                                function matchObject(obj1, obj2) {
                                    for (var i in obj1) {
                                        if (obj1.hasOwnProperty(i)) {
                                            var val1 = obj1[i],
                        Severity: Minor
                        Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language