JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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 app/bower_components/jquery/dist/jquery.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 app/bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

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

          link: function(scope, element, attrs, ctrl) {
            var range = ctrl.yearRange;
      
            ctrl.step = { years: range };
            ctrl.element = element;

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

            link: function(scope, element, attrs, ctrl) {
              var range = ctrl.yearRange;
        
              ctrl.step = { years: range };
              ctrl.element = element;
        Severity: Minor
        Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

          function addHandle( attrs, handler ) {
              var arr = attrs.split("|"),
                  i = attrs.length;
          
              while ( i-- ) {
          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 901..908

          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

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

          function addHandle( attrs, handler ) {
              var arr = attrs.split("|"),
                  i = attrs.length;
          
              while ( i-- ) {
          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 352..359

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

              this.process = function(mode, srcContext, dstContext, alpha, offset) {
                  var srcCanvas = srcContext.canvas,
                      normal = mode === 'normal';
                  if (normal || nativeModes[mode]) {
                      dstContext.save();
          Severity: Minor
          Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

                    function drawSegment(segment) {
                        if (matrix) {
                            segment._transformCoordinates(matrix, coords, false);
                            curX = coords[0];
                            curY = coords[1];
            Severity: Minor
            Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

                    function Context($element) {
                      var _this = this;
              
                      this.$element = $element;
                      this.element = $element[0];
              Severity: Minor
              Found in app/bower_components/jquery-waypoints/waypoints.js - About 1 hr to fix

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

                        function drawSegment(segment) {
                            if (matrix) {
                                segment._transformCoordinates(matrix, coords, false);
                                curX = coords[0];
                                curY = coords[1];
                Severity: Minor
                Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                      this.process = function(mode, srcContext, dstContext, alpha, offset) {
                          var srcCanvas = srcContext.canvas,
                              normal = mode === 'normal';
                          if (normal || nativeModes[mode]) {
                              dstContext.save();
                  Severity: Minor
                  Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                        initialize: function Component(obj) {
                            this._id = Component._id = (Component._id || 0) + 1;
                            this._type = obj.type in this._types
                                ? obj.type
                                : 'options' in obj
                    Severity: Minor
                    Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                          initialize: function Palette(title, components, values) {
                              var parent = DomElement.find('.palettejs-panel')
                                  || DomElement.find('body').appendChild(
                                      DomElement.create('div', { 'class': 'palettejs-panel' }));
                              this._element = parent.appendChild(
                      Severity: Minor
                      Found in app/bower_components/paper/dist/paper-full.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 app/bower_components/jquery/dist/jquery.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 app/bower_components/jquery/src/core.js - About 1 hr to fix

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

                                if (nativeReduce && obj.reduce === nativeReduce) {
                                  if (context) iterator = _.bind(iterator, context);
                                  return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
                                }
                            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 133..136

                            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

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

                                if (nativeReduceRight && obj.reduceRight === nativeReduceRight) {
                                  if (context) iterator = _.bind(iterator, context);
                                  return initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator);
                                }
                            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 112..115

                            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

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

                                each(obj, function(value, index, list) {
                                  var computed = iterator ? iterator.call(context, value, index, list) : value;
                                  if (computed > lastComputed) {
                                    result = value;
                                    lastComputed = computed;
                            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 275..281

                            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

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

                                each(obj, function(value, index, list) {
                                  var computed = iterator ? iterator.call(context, value, index, list) : value;
                                  if (computed < lastComputed) {
                                    result = value;
                                    lastComputed = computed;
                            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 259..265

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

                                function clipConvexHull(hullTop, hullBottom, dMin, dMax) {
                                    var tProxy,
                                        tVal = null,
                                        px, py,
                                        qx, qy;
                            Severity: Minor
                            Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language