JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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

jQuery.extend({
    hasData: function( elem ) {
        return data_user.hasData( elem ) || data_priv.hasData( elem );
    },

Severity: Major
Found in app/bower_components/jquery/src/data.js and 1 other location - About 5 hrs to fix
app/bower_components/jquery/dist/jquery.js on lines 3730..3752

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

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 siblingCheck( a, b ) {
    var cur = b && a,
        diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
            ( ~b.sourceIndex || MAX_NEGATIVE ) -
            ( ~a.sourceIndex || MAX_NEGATIVE );
Severity: Major
Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
app/bower_components/jquery/src/sizzle/dist/sizzle.js on lines 367..388

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

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 siblingCheck( a, b ) {
    var cur = b && a,
        diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
            ( ~b.sourceIndex || MAX_NEGATIVE ) -
            ( ~a.sourceIndex || MAX_NEGATIVE );
Severity: Major
Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 5 hrs to fix
app/bower_components/jquery/dist/jquery.js on lines 916..937

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

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

var Numerical = new function() {

    var abscissas = [
        [  0.5773502691896257645091488],
        [0,0.7745966692414833770358531],
Severity: Major
Found in app/bower_components/paper/dist/paper-core.js - About 5 hrs to fix

    Function Numerical has 142 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var Numerical = new function() {
    
        var abscissas = [
            [  0.5773502691896257645091488],
            [0,0.7745966692414833770358531],
    Severity: Major
    Found in app/bower_components/paper/dist/paper-full.js - About 5 hrs to fix

      File Gruntfile.js has 403 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Bootstrap's Gruntfile
       * http://getbootstrap.com
       * Copyright 2013-2014 Twitter, Inc.
       * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
      Severity: Minor
      Found in app/bower_components/bootstrap/Gruntfile.js - About 5 hrs to fix

        Function createHttpBackendMock has 141 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function createHttpBackendMock($rootScope, $delegate, $browser) {
          var definitions = [],
              expectations = [],
              responses = [],
              responsesPush = angular.bind(responses, responses.push),
        Severity: Major
        Found in app/bower_components/angular-mocks/angular-mocks.js - About 5 hrs to fix

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

              squareGraph: {
                name: 'Square Graph',
                render: drawSquareGraph,
          
                horizontalPatternSize: function (options) {
          Severity: Major
          Found in app/scripts/services/paperAndLayouts.js and 1 other location - About 5 hrs to fix
          app/scripts/services/paperAndLayouts.js on lines 180..205

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

          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

              dotGrid: {
                name: 'Dot Grid',
                render: drawDotGrid,
          
                horizontalPatternSize: function (options) {
          Severity: Major
          Found in app/scripts/services/paperAndLayouts.js and 1 other location - About 5 hrs to fix
          app/scripts/services/paperAndLayouts.js on lines 259..284

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

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

              link: function(scope, element, attrs, ngModel) {
                var dateFormat,
                    closeOnDateSelection = angular.isDefined(attrs.closeOnDateSelection) ? scope.$parent.$eval(attrs.closeOnDateSelection) : datepickerPopupConfig.closeOnDateSelection,
                    appendToBody = angular.isDefined(attrs.datepickerAppendToBody) ? scope.$parent.$eval(attrs.datepickerAppendToBody) : datepickerPopupConfig.appendToBody;
          
          
          Severity: Major
          Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 5 hrs to fix

            Function compile has 136 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    compile: function (tElem, tAttrs) {
                      var tooltipLinker = $compile( template );
            
                      return function link ( scope, element, attrs ) {
                        var tooltip;
            Severity: Major
            Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 5 hrs to fix

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

                  link: function(scope, element, attrs, ngModel) {
                    var dateFormat,
                        closeOnDateSelection = angular.isDefined(attrs.closeOnDateSelection) ? scope.$parent.$eval(attrs.closeOnDateSelection) : datepickerPopupConfig.closeOnDateSelection,
                        appendToBody = angular.isDefined(attrs.datepickerAppendToBody) ? scope.$parent.$eval(attrs.datepickerAppendToBody) : datepickerPopupConfig.appendToBody;
              
              
              Severity: Major
              Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 5 hrs to fix

                Function compile has 136 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        compile: function (tElem, tAttrs) {
                          var tooltipLinker = $compile( template );
                
                          return function link ( scope, element, attrs ) {
                            var tooltip;
                Severity: Major
                Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 5 hrs to fix

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

                  jQuery.swap = function( elem, options, callback, args ) {
                      var ret, name,
                          old = {};
                  
                      // Remember the old values, and insert the new ones
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
                  app/bower_components/jquery/src/css/swap.js on lines 6..24

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

                  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.swap = function( elem, options, callback, args ) {
                      var ret, name,
                          old = {};
                  
                      // Remember the old values, and insert the new ones
                  Severity: Major
                  Found in app/bower_components/jquery/src/css/swap.js and 1 other location - About 5 hrs to fix
                  app/bower_components/jquery/dist/jquery.js on lines 5675..5693

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

                  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.parseXML = function( data ) {
                      var xml, tmp;
                      if ( !data || typeof data !== "string" ) {
                          return null;
                      }
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
                  app/bower_components/jquery/src/ajax/parseXML.js on lines 6..24

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

                  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.parseXML = function( data ) {
                      var xml, tmp;
                      if ( !data || typeof data !== "string" ) {
                          return null;
                      }
                  Severity: Major
                  Found in app/bower_components/jquery/src/ajax/parseXML.js and 1 other location - About 5 hrs to fix
                  app/bower_components/jquery/dist/jquery.js on lines 7501..7519

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

                  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.filter = function( expr, elems, not ) {
                      var elem = elems[ 0 ];
                  
                      if ( not ) {
                          expr = ":not(" + expr + ")";
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
                  app/bower_components/jquery/src/traversing/findFilter.js on lines 40..52

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

                  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.filter = function( expr, elems, not ) {
                      var elem = elems[ 0 ];
                  
                      if ( not ) {
                          expr = ":not(" + expr + ")";
                  Severity: Major
                  Found in app/bower_components/jquery/src/traversing/findFilter.js and 1 other location - About 5 hrs to fix
                  app/bower_components/jquery/dist/jquery.js on lines 2636..2648

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

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

                            return function link ( scope, element, attrs ) {
                              var tooltip;
                              var transitionTimeout;
                              var popupTimeout;
                              var appendToBody = angular.isDefined( options.appendToBody ) ? options.appendToBody : false;
                  Severity: Major
                  Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js - About 5 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language