JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

Function remove has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    remove: function( elem, types, handler, selector, mappedTypes ) {

        var j, origCount, tmp,
            events, t, handleObj,
            special, handlers, type, namespaces, origType,
Severity: Minor
Found in app/bower_components/jquery/dist/jquery.js - About 2 hrs to fix

    Function remove has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        remove: function( elem, types, handler, selector, mappedTypes ) {
    
            var j, origCount, tmp,
                events, t, handleObj,
                special, handlers, type, namespaces, origType,
    Severity: Minor
    Found in app/bower_components/jquery/src/event.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                      if ( ( mappedTypes || origType === handleObj.origType ) &&
                          ( !handler || handler.guid === handleObj.guid ) &&
                          ( !tmp || tmp.test( handleObj.namespace ) ) &&
                          ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                          handlers.splice( j, 1 );
      Severity: Critical
      Found in app/bower_components/jquery/src/event.js - About 2 hrs to fix

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

        function createOptions( options ) {
            var object = optionsCache[ options ] = {};
            jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
                object[ flag ] = true;
            });
        Severity: Major
        Found in app/bower_components/jquery/src/callbacks.js and 1 other location - About 2 hrs to fix
        app/bower_components/jquery/dist/jquery.js on lines 3010..3016

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

        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 Data() {
            // Support: Android < 4,
            // Old WebKit does not have Object.preventExtensions/freeze method,
            // return new empty object instead with no [[set]] accessor
            Object.defineProperty( this.cache = {}, 0, {
        Severity: Major
        Found in app/bower_components/jquery/src/data/Data.js and 1 other location - About 2 hrs to fix
        app/bower_components/jquery/dist/jquery.js on lines 3509..3520

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

        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 Data() {
            // Support: Android < 4,
            // Old WebKit does not have Object.preventExtensions/freeze method,
            // return new empty object instead with no [[set]] accessor
            Object.defineProperty( this.cache = {}, 0, {
        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/data/Data.js on lines 7..18

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

        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 createOptions( options ) {
            var object = optionsCache[ options ] = {};
            jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
                object[ flag ] = true;
            });
        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/callbacks.js on lines 10..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 75.

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

          Carousel.prototype.slide = function (type, next) {
            var $active   = this.$element.find('.item.active')
            var $next     = next || $active[type]()
            var isCycling = this.interval
            var direction = type == 'next' ? 'left' : 'right'
        Severity: Minor
        Found in app/bower_components/bootstrap/js/carousel.js - About 1 hr to fix

          Function slide has 49 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            Carousel.prototype.slide = function (type, next) {
              var $active   = this.$element.find('.item.active')
              var $next     = next || $active[type]()
              var isCycling = this.interval
              var direction = type == 'next' ? 'left' : 'right'
          Severity: Minor
          Found in app/bower_components/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

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

            angular.module("template/popover/popover.html", []).run(["$templateCache", function($templateCache) {
              $templateCache.put("template/popover/popover.html",
                "<div class=\"popover {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
                "  <div class=\"arrow\"></div>\n" +
                "\n" +
            app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3833..3844

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

            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 addGetHookIf( conditionFn, hookFn ) {
                // Define the hook, we'll check on the first run if it's really needed.
                return {
                    get: function() {
                        if ( conditionFn() ) {
            Severity: Major
            Found in app/bower_components/jquery/src/css/addGetHookIf.js and 1 other location - About 1 hr to fix
            app/bower_components/jquery/dist/jquery.js on lines 5570..5587

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

            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 addGetHookIf( conditionFn, hookFn ) {
                // Define the hook, we'll check on the first run if it's really needed.
                return {
                    get: function() {
                        if ( conditionFn() ) {
            Severity: Major
            Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
            app/bower_components/jquery/src/css/addGetHookIf.js on lines 3..20

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 74.

            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

            angular.module("template/carousel/carousel.html", []).run(["$templateCache", function($templateCache) {
              $templateCache.put("template/carousel/carousel.html",
                "<div ng-mouseenter=\"pause()\" ng-mouseleave=\"play()\" class=\"carousel\" ng-swipe-right=\"prev()\" ng-swipe-left=\"next()\">\n" +
                "    <ol class=\"carousel-indicators\" ng-show=\"slides.length > 1\">\n" +
                "        <li ng-repeat=\"slide in slides track by $index\" ng-class=\"{active: isActive(slide)}\" ng-click=\"select(slide)\"></li>\n" +
            app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4003..4014

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

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

                  Context.prototype.doScroll = function() {
                    var axes,
                      _this = this;
            
                    axes = {
            Severity: Minor
            Found in app/bower_components/jquery-waypoints/waypoints.js - About 1 hr to fix

              Function buildFragment has 48 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  buildFragment: function( elems, context, scripts, selection ) {
                      var elem, tmp, tag, wrap, contains, j,
                          fragment = context.createDocumentFragment(),
                          nodes = [],
                          i = 0,
              Severity: Minor
              Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

                Function buildFragment has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    buildFragment: function( elems, context, scripts, selection ) {
                        var elem, tmp, tag, wrap, contains, j,
                            fragment = context.createDocumentFragment(),
                            nodes = [],
                            i = 0,
                Severity: Minor
                Found in app/bower_components/jquery/src/manipulation.js - About 1 hr to fix

                  Function getAverageColor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      getAverageColor: function(object) {
                          var bounds, path;
                          if (!object) {
                              bounds = this.getBounds();
                          } else if (object instanceof PathItem) {
                  Severity: Minor
                  Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

                    Function getAverageColor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        getAverageColor: function(object) {
                            var bounds, path;
                            if (!object) {
                                bounds = this.getBounds();
                            } else if (object instanceof PathItem) {
                    Severity: Minor
                    Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

                      Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      select = Sizzle.select = function( selector, context, results, seed ) {
                          var i, tokens, token, type, find,
                              compiled = typeof selector === "function" && selector,
                              match = !seed && tokenize( (selector = compiled.selector || selector) );
                      
                      
                      Severity: Minor
                      Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

                        Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        select = Sizzle.select = function( selector, context, results, seed ) {
                            var i, tokens, token, type, find,
                                compiled = typeof selector === "function" && selector,
                                match = !seed && tokenize( (selector = compiled.selector || selector) );
                        
                        
                        Severity: Minor
                        Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language