JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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

paper.view.exportFrames({
    amount: 100,
    directory: __dirname,
    onComplete: function() {
        console.log('Done exporting.');
Severity: Major
Found in app/bower_components/paper/examples/Node.js/AnimatedStar.js and 2 other locations - About 2 hrs to fix
app/bower_components/paper/examples/Node.js/SVGImport.js on lines 11..20
app/bower_components/paper/examples/Node.js/Tadpoles.js on lines 4..13

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

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

        paper.view.exportFrames({
            amount: 1,
            directory: __dirname,
            onComplete: function() {
                console.log('Done exporting.');
Severity: Major
Found in app/bower_components/paper/examples/Node.js/SVGImport.js and 2 other locations - About 2 hrs to fix
app/bower_components/paper/examples/Node.js/AnimatedStar.js on lines 13..22
app/bower_components/paper/examples/Node.js/Tadpoles.js on lines 4..13

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

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

scope.view.exportFrames({
    amount: 400,
    directory: __dirname,
    onComplete: function() {
        console.log('Done exporting.');
Severity: Major
Found in app/bower_components/paper/examples/Node.js/Tadpoles.js and 2 other locations - About 2 hrs to fix
app/bower_components/paper/examples/Node.js/AnimatedStar.js on lines 13..22
app/bower_components/paper/examples/Node.js/SVGImport.js on lines 11..20

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

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

    link: function(scope, element, attrs, ctrls) {
      var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];

      if (!ngModelCtrl) {
         return; // do nothing if no ng-model
Severity: Major
Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 2 hrs to fix

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

        link: function(scope, element, attrs, ctrls) {
          var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];
    
          if (!ngModelCtrl) {
             return; // do nothing if no ng-model
    Severity: Major
    Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 2 hrs to fix

      Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              superMatcher = function( seed, context, xml, results, outermost ) {
                  var elem, j, matcher,
                      matchedCount = 0,
                      i = "0",
                      unmatched = seed && [],
      Severity: Major
      Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix

        Function walkAST has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function walkAST(node, parent) {
                    if (!node)
                        return;
                    for (var key in node) {
                        if (key === 'range' || key === 'loc')
        Severity: Major
        Found in app/bower_components/paper/dist/paper-full.js - About 2 hrs to fix

          Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  superMatcher = function( seed, context, xml, results, outermost ) {
                      var elem, j, matcher,
                          matchedCount = 0,
                          i = "0",
                          unmatched = seed && [],
          Severity: Major
          Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

            Function $get has 60 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                   function($rootScope,   $q) {
                var repeatFns = [],
                    nextRepeatId = 0,
                    now = 0;
            
            
            Severity: Major
            Found in app/bower_components/angular-mocks/angular-mocks.js - About 2 hrs to fix

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

              function elementMatcher( matchers ) {
                  return matchers.length > 1 ?
                      function( elem, context, xml ) {
                          var i = matchers.length;
                          while ( i-- ) {
              Severity: Major
              Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 hrs to fix
              app/bower_components/jquery/dist/jquery.js on lines 2119..2131

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

              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

              if ( !support.optSelected ) {
                  jQuery.propHooks.selected = {
                      get: function( elem ) {
                          var parent = elem.parentNode;
                          if ( parent && parent.parentNode ) {
              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/attributes/prop.js on lines 69..79

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

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

                var registerPageTrack = function (fn) {
                  api.pageTrack = fn;
                  angular.forEach(cache.pageviews, function (path, index) {
                    setTimeout(function () { api.pageTrack(path); }, index * settings.pageTracking.bufferFlushDelay);
                  });
              Severity: Major
              Found in app/bower_components/angularitics/src/angulartics.js and 3 other locations - About 2 hrs to fix
              app/bower_components/angularitics/src/angulartics.js on lines 85..90
              app/bower_components/angularitics/src/angulartics.js on lines 91..96
              app/bower_components/angularitics/src/angulartics.js on lines 97..102

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

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

                var registerSetUserProperties = function (fn) {
                  api.setUserProperties = fn;
                  angular.forEach(cache.setUserProperties, function (properties, index) {
                    setTimeout(function () { api.setUserProperties(properties); }, index * settings.pageTracking.bufferFlushDelay);
                  });
              Severity: Major
              Found in app/bower_components/angularitics/src/angulartics.js and 3 other locations - About 2 hrs to fix
              app/bower_components/angularitics/src/angulartics.js on lines 73..78
              app/bower_components/angularitics/src/angulartics.js on lines 85..90
              app/bower_components/angularitics/src/angulartics.js on lines 97..102

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

              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 elementMatcher( matchers ) {
                  return matchers.length > 1 ?
                      function( elem, context, xml ) {
                          var i = matchers.length;
                          while ( 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/sizzle/dist/sizzle.js on lines 1570..1582

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

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

                var registerSetUsername = function (fn) {
                  api.setUsername = fn;
                  angular.forEach(cache.setUsername, function (name, index) {
                    setTimeout(function () { api.setUsername(name); }, index * settings.pageTracking.bufferFlushDelay);
                  });
              Severity: Major
              Found in app/bower_components/angularitics/src/angulartics.js and 3 other locations - About 2 hrs to fix
              app/bower_components/angularitics/src/angulartics.js on lines 73..78
              app/bower_components/angularitics/src/angulartics.js on lines 91..96
              app/bower_components/angularitics/src/angulartics.js on lines 97..102

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

              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

              if ( !support.optSelected ) {
                  jQuery.propHooks.selected = {
                      get: function( elem ) {
                          var parent = elem.parentNode;
                          if ( parent && parent.parentNode ) {
              Severity: Major
              Found in app/bower_components/jquery/src/attributes/prop.js and 1 other location - About 2 hrs to fix
              app/bower_components/jquery/dist/jquery.js on lines 7109..7119

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

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

                var registerSetUserPropertiesOnce = function (fn) {
                  api.setUserPropertiesOnce = fn;
                  angular.forEach(cache.setUserPropertiesOnce, function (properties, index) {
                    setTimeout(function () { api.setUserPropertiesOnce(properties); }, index * settings.pageTracking.bufferFlushDelay);
                  });
              Severity: Major
              Found in app/bower_components/angularitics/src/angulartics.js and 3 other locations - About 2 hrs to fix
              app/bower_components/angularitics/src/angulartics.js on lines 73..78
              app/bower_components/angularitics/src/angulartics.js on lines 85..90
              app/bower_components/angularitics/src/angulartics.js on lines 91..96

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

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

                var eq = function(a, b, aStack, bStack) {
                  // Identical objects are equal. `0 === -0`, but they aren't identical.
                  // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
                  if (a === b) return a !== 0 || 1 / a == 1 / b;
                  // A strict comparison is necessary because `null == undefined`.
              Severity: Major
              Found in app/bower_components/underscore/underscore.js - About 2 hrs to fix

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

                        _handleEvent: function(type, point, event) {
                            if (!this._eventCounters[type])
                                return;
                            var project = this._project,
                                hit = project.hitTest(point, {
                Severity: Major
                Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

                  Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      Deferred: function( func ) {
                          var tuples = [
                                  // action, add listener, listener list, final state
                                  [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                  [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language