JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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

function createTween( value, prop, animation ) {
    var tween,
        collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
        index = 0,
        length = collection.length;
Severity: Major
Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
app/bower_components/jquery/src/effects.js on lines 103..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 101.

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 createTween( value, prop, animation ) {
    var tween,
        collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
        index = 0,
        length = collection.length;
Severity: Major
Found in app/bower_components/jquery/src/effects.js and 1 other location - About 3 hrs to fix
app/bower_components/jquery/dist/jquery.js on lines 6321..6333

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

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

    link: function(scope, element, attrs, ctrl) {
      scope.showWeeks = ctrl.showWeeks;

      ctrl.step = { months: 1 };
      ctrl.element = element;
Severity: Major
Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 3 hrs to fix

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

        link: function(scope, element, attrs, ctrl) {
          scope.showWeeks = ctrl.showWeeks;
    
          ctrl.step = { months: 1 };
          ctrl.element = element;
    Severity: Major
    Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 3 hrs to fix

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

      function manipulationTarget( elem, content ) {
          return jQuery.nodeName( elem, "table" ) &&
              jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
      
              elem.getElementsByTagName("tbody")[0] ||
      Severity: Major
      Found in app/bower_components/jquery/src/manipulation.js and 1 other location - About 3 hrs to fix
      app/bower_components/jquery/dist/jquery.js on lines 4920..4927

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

      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 manipulationTarget( elem, content ) {
          return jQuery.nodeName( elem, "table" ) &&
              jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
      
              elem.getElementsByTagName("tbody")[0] ||
      Severity: Major
      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
      app/bower_components/jquery/src/manipulation.js on lines 51..58

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

      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.fn.extend({
          prop: function( name, value ) {
              return access( this, jQuery.prop, name, value, arguments.length > 1 );
          },
      
      
      Severity: Major
      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
      app/bower_components/jquery/src/attributes/prop.js on lines 9..19

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

      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 assert( fn ) {
          var div = document.createElement("div");
      
          try {
              return !!fn( div );
      Severity: Major
      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
      app/bower_components/jquery/src/sizzle/dist/sizzle.js on lines 330..345

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

      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 assert( fn ) {
          var div = document.createElement("div");
      
          try {
              return !!fn( div );
      Severity: Major
      Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 hrs to fix
      app/bower_components/jquery/dist/jquery.js on lines 879..894

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

      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.fn.extend({
          prop: function( name, value ) {
              return access( this, jQuery.prop, name, value, arguments.length > 1 );
          },
      
      
      Severity: Major
      Found in app/bower_components/jquery/src/attributes/prop.js and 1 other location - About 3 hrs to fix
      app/bower_components/jquery/dist/jquery.js on lines 7049..7059

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

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

          function tracePaths(segments, operator, selfOp) {
              operator = operator || function() {
                  return true;
              };
              var paths = [],
      Severity: Major
      Found in app/bower_components/paper/dist/paper-core.js - About 3 hrs to fix

        Function tracePaths has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function tracePaths(segments, operator, selfOp) {
                operator = operator || function() {
                    return true;
                };
                var paths = [],
        Severity: Major
        Found in app/bower_components/paper/dist/paper-full.js - About 3 hrs to fix

          Function computeBoolean has 78 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function computeBoolean(path1, path2, operator, subtract) {
                  function preparePath(path) {
                      return path.clone(false).reduce().reorient().transform(null, true);
                  }
          
          
          Severity: Major
          Found in app/bower_components/paper/dist/paper-core.js - About 3 hrs to fix

            Function computeBoolean has 78 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function computeBoolean(path1, path2, operator, subtract) {
                    function preparePath(path) {
                        return path.clone(false).reduce().reorient().transform(null, true);
                    }
            
            
            Severity: Major
            Found in app/bower_components/paper/dist/paper-full.js - About 3 hrs to fix

              Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function Sizzle( selector, context, results, seed ) {
                  var match, elem, m, nodeType,
                      // QSA vars
                      i, groups, old, nid, newContext, newSelector;
              
              
              Severity: Major
              Found in app/bower_components/jquery/dist/jquery.js - About 3 hrs to fix

                Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Sizzle( selector, context, results, seed ) {
                    var match, elem, m, nodeType,
                        // QSA vars
                        i, groups, old, nid, newContext, newSelector;
                
                
                Severity: Major
                Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js - About 3 hrs to fix

                  Function draw has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      draw: function(ctx, param, parentStrokeMatrix) {
                          var updateVersion = this._updateVersion = this._project._updateVersion;
                          if (!this._visible || this._opacity === 0)
                              return;
                          var matrices = param.matrices,
                  Severity: Major
                  Found in app/bower_components/paper/dist/paper-core.js - About 3 hrs to fix

                    Function draw has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        draw: function(ctx, param, parentStrokeMatrix) {
                            var updateVersion = this._updateVersion = this._project._updateVersion;
                            if (!this._visible || this._opacity === 0)
                                return;
                            var matrices = param.matrices,
                    Severity: Major
                    Found in app/bower_components/paper/dist/paper-full.js - About 3 hrs to fix

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

                      var
                          // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
                          // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
                          rdisplayswap = /^(none|table(?!-c[ea]).+)/,
                          rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
                      Severity: Major
                      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
                      app/bower_components/jquery/src/css.js on lines 23..36

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

                      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

                      var
                          // Use the correct document accordingly with window argument (sandbox)
                          document = window.document,
                      
                          version = "@VERSION",
                      Severity: Major
                      Found in app/bower_components/jquery/src/core.js and 1 other location - About 3 hrs to fix
                      app/bower_components/jquery/dist/jquery.js on lines 66..90

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

                      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

                      Severity
                      Category
                      Status
                      Source
                      Language