JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

Function Color has 116 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        initialize: function Color(arg) {
            var slice = Array.prototype.slice,
                args = arguments,
                read = 0,
                type,
Severity: Major
Found in app/bower_components/paper/dist/paper-full.js - About 4 hrs to fix

    Function arcTo has 115 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            arcTo: function() {
                var current = getCurrentSegment(this),
                    from = current._point,
                    to = Point.read(arguments),
                    through,
    Severity: Major
    Found in app/bower_components/paper/dist/paper-core.js - About 4 hrs to fix

      Function arcTo has 115 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              arcTo: function() {
                  var current = getCurrentSegment(this),
                      from = current._point,
                      to = Point.read(arguments),
                      through,
      Severity: Major
      Found in app/bower_components/paper/dist/paper-full.js - About 4 hrs to fix

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

        function isArraylike( obj ) {
            var length = obj.length,
                type = jQuery.type( obj );
        
            if ( type === "function" || jQuery.isWindow( obj ) ) {
        Severity: Major
        Found in app/bower_components/jquery/src/core.js and 1 other location - About 4 hrs to fix
        app/bower_components/jquery/dist/jquery.js on lines 534..548

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

        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 isArraylike( obj ) {
            var length = obj.length,
                type = jQuery.type( obj );
        
            if ( type === "function" || jQuery.isWindow( obj ) ) {
        Severity: Major
        Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
        app/bower_components/jquery/src/core.js on lines 481..495

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

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

        var Style = Base.extend(new function() {
            var defaults = {
                fillColor: undefined,
                strokeColor: undefined,
                strokeWidth: 1,
        Severity: Major
        Found in app/bower_components/paper/dist/paper-core.js - About 4 hrs to fix

          Function _hitTestSelf has 113 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _hitTestSelf: function(point, options) {
                  var that = this,
                      style = this.getStyle(),
                      segments = this._segments,
                      numSegments = segments.length,
          Severity: Major
          Found in app/bower_components/paper/dist/paper-core.js - About 4 hrs to fix

            Function _hitTestSelf has 113 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _hitTestSelf: function(point, options) {
                    var that = this,
                        style = this.getStyle(),
                        segments = this._segments,
                        numSegments = segments.length,
            Severity: Major
            Found in app/bower_components/paper/dist/paper-full.js - About 4 hrs to fix

              Function Style has 113 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var Style = Base.extend(new function() {
                  var defaults = {
                      fillColor: undefined,
                      strokeColor: undefined,
                      strokeWidth: 1,
              Severity: Major
              Found in app/bower_components/paper/dist/paper-full.js - About 4 hrs to fix

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

                function actualDisplay( name, doc ) {
                    var style,
                        elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
                
                        // getDefaultComputedStyle might be reliably used only on attached element
                Severity: Major
                Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/src/css/defaultDisplay.js on lines 15..31

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

                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 actualDisplay( name, doc ) {
                    var style,
                        elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
                
                        // getDefaultComputedStyle might be reliably used only on attached element
                Severity: Major
                Found in app/bower_components/jquery/src/css/defaultDisplay.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/dist/jquery.js on lines 5460..5476

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

                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.delay = function( time, type ) {
                    time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
                    type = type || "fx";
                
                    return this.queue( type, function( next, hooks ) {
                Severity: Major
                Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/src/queue/delay.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 123.

                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.delay = function( time, type ) {
                    time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
                    type = type || "fx";
                
                    return this.queue( type, function( next, hooks ) {
                Severity: Major
                Found in app/bower_components/jquery/src/queue/delay.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/dist/jquery.js on lines 6869..6879

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

                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.each( [ "get", "post" ], function( i, method ) {
                    jQuery[ method ] = function( url, data, callback, type ) {
                        // shift arguments if data argument was omitted
                        if ( jQuery.isFunction( data ) ) {
                            type = type || callback;
                Severity: Major
                Found in app/bower_components/jquery/src/ajax.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/dist/jquery.js on lines 8289..8306

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

                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 ajaxExtend( target, src ) {
                    var key, deep,
                        flatOptions = jQuery.ajaxSettings.flatOptions || {};
                
                    for ( key in src ) {
                Severity: Major
                Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/src/ajax.js on lines 122..136

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 123.

                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.each( [ "get", "post" ], function( i, method ) {
                    jQuery[ method ] = function( url, data, callback, type ) {
                        // shift arguments if data argument was omitted
                        if ( jQuery.isFunction( data ) ) {
                            type = type || callback;
                Severity: Major
                Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/src/ajax.js on lines 779..796

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

                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 ajaxExtend( target, src ) {
                    var key, deep,
                        flatOptions = jQuery.ajaxSettings.flatOptions || {};
                
                    for ( key in src ) {
                Severity: Major
                Found in app/bower_components/jquery/src/ajax.js and 1 other location - About 4 hrs to fix
                app/bower_components/jquery/dist/jquery.js on lines 7632..7646

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

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

                        , FileSaver = function(blob, name) {
                            // First try a.download, then web filesystem, then object URLs
                            var
                                  filesaver = this
                                , type = blob.type
                Severity: Major
                Found in app/bower_components/FileSaver/FileSaver.js - About 4 hrs to fix

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

                  jQuery.each({
                      slideDown: genFx("show"),
                      slideUp: genFx("hide"),
                      slideToggle: genFx("toggle"),
                      fadeIn: { opacity: "show" },
                  Severity: Major
                  Found in app/bower_components/jquery/src/effects.js and 1 other location - About 4 hrs to fix
                  app/bower_components/jquery/dist/jquery.js on lines 6802..6813

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

                  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.each({
                      slideDown: genFx("show"),
                      slideUp: genFx("hide"),
                      slideToggle: genFx("toggle"),
                      fadeIn: { opacity: "show" },
                  Severity: Major
                  Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
                  app/bower_components/jquery/src/effects.js on lines 584..595

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

                  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