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 createCache() {
    var keys = [];

    function cache( key, value ) {
        // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
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 303..315

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 = "2.1.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/core.js on lines 13..37

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

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/src/css.js and 1 other location - About 3 hrs to fix
app/bower_components/jquery/dist/jquery.js on lines 5696..5709

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

function createCache() {
    var keys = [];

    function cache( key, value ) {
        // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
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 852..864

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

Function _getMonoCurves has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _getMonoCurves: function() {
        var monoCurves = this._monoCurves,
            prevCurve;

        function insertCurve(v) {
Severity: Major
Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

    Function _getMonoCurves has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _getMonoCurves: function() {
            var monoCurves = this._monoCurves,
                prevCurve;
    
            function insertCurve(v) {
    Severity: Major
    Found in app/bower_components/paper/dist/paper-full.js - About 2 hrs to fix

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

      jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
          "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
          "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
      
          // Handle event binding
      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/event/alias.js on lines 6..16

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

      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

      jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
          "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
          "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
      
          // Handle event binding
      Severity: Major
      Found in app/bower_components/jquery/src/event/alias.js and 1 other location - About 2 hrs to fix
      app/bower_components/jquery/dist/jquery.js on lines 7453..7463

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

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

          function addCurveIntersections(v1, v2, curve1, curve2, locations, include,
                  tMin, tMax, uMin, uMax, oldTDiff, reverse, recursion) {
              if (recursion > 20)
                  return;
              var q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],
      Severity: Major
      Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

        Function addCurveIntersections has 72 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function addCurveIntersections(v1, v2, curve1, curve2, locations, include,
                    tMin, tMax, uMin, uMax, oldTDiff, reverse, recursion) {
                if (recursion > 20)
                    return;
                var q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],
        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

          Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
              set: function( tween ) {
                  if ( tween.elem.nodeType && tween.elem.parentNode ) {
                      tween.elem[ tween.prop ] = tween.now;
                  }
          Severity: Major
          Found in app/bower_components/jquery/src/effects/Tween.js and 1 other location - About 2 hrs to fix
          app/bower_components/jquery/dist/jquery.js on lines 6210..6216

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

          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

          Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
              set: function( tween ) {
                  if ( tween.elem.nodeType && tween.elem.parentNode ) {
                      tween.elem[ tween.prop ] = tween.now;
                  }
          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/Tween.js on lines 92..98

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

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

              _draw: function(ctx, param, strokeMatrix) {
                  var style = this._style,
                      hasFill = style.hasFill(),
                      hasStroke = style.hasStroke(),
                      dontPaint = param.dontFinish || param.clip,
          Severity: Major
          Found in app/bower_components/paper/dist/paper-core.js - About 2 hrs to fix

            Function _draw has 71 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _draw: function(ctx, param, strokeMatrix) {
                    var style = this._style,
                        hasFill = style.hasFill(),
                        hasStroke = style.hasStroke(),
                        dontPaint = param.dontFinish || param.clip,
            Severity: Major
            Found in app/bower_components/paper/dist/paper-full.js - About 2 hrs to fix

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

                      function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
              
                        var $modal = {};
              
                        function getTemplatePromise(options) {
              Severity: Major
              Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 2 hrs to fix

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

                        function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
                
                          var $modal = {};
                
                          function getTemplatePromise(options) {
                Severity: Major
                Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 2 hrs to fix

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

                  jQuery.fn.extend({
                      attr: function( name, value ) {
                          return access( this, jQuery.attr, name, value, arguments.length > 1 );
                      },
                  
                  
                  Severity: Major
                  Found in app/bower_components/jquery/src/attributes/attr.js and 1 other location - About 2 hrs to fix
                  app/bower_components/jquery/dist/jquery.js on lines 6914..6924

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

                  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({
                      attr: function( name, value ) {
                          return access( this, jQuery.attr, name, value, arguments.length > 1 );
                      },
                  
                  
                  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/attr.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 90.

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

                      add: function( elem, types, handler, data, selector ) {
                  
                          var handleObjIn, eventHandle, tmp,
                              events, t, handleObj,
                              special, handlers, type, namespaces, origType,
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                    Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                        var bySet = setMatchers.length > 0,
                            byElement = elementMatchers.length > 0,
                            superMatcher = function( seed, context, xml, results, outermost ) {
                                var elem, j, matcher,
                    Severity: Major
                    Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language