JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

Function Size has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    initialize: function Size(arg0, arg1) {
        var type = typeof arg0;
        if (type === 'number') {
            var hasHeight = typeof arg1 === 'number';
            this.width = arg0;
Severity: Minor
Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

    Function _addBevelJoin has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _addBevelJoin: function(segment, join, radius, miterLimit, addPoint, area) {
            var curve2 = segment.getCurve(),
                curve1 = curve2.getPrevious(),
                point = curve2.getPointAt(0, true),
                normal1 = curve1.getNormalAt(1, true),
    Severity: Minor
    Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

      Function fitCubic has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          fitCubic: function(first, last, tan1, tan2) {
              if (last - first == 1) {
                  var pt1 = this.points[first],
                      pt2 = this.points[last],
                      dist = pt1.getDistance(pt2) / 3;
      Severity: Minor
      Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

        Function Size has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            initialize: function Size(arg0, arg1) {
                var type = typeof arg0;
                if (type === 'number') {
                    var hasHeight = typeof arg1 === 'number';
                    this.width = arg0;
        Severity: Minor
        Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

          Function _addBevelJoin has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _addBevelJoin: function(segment, join, radius, miterLimit, addPoint, area) {
                  var curve2 = segment.getCurve(),
                      curve1 = curve2.getPrevious(),
                      point = curve2.getPointAt(0, true),
                      normal1 = curve1.getNormalAt(1, true),
          Severity: Minor
          Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

            Function fitCubic has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                fitCubic: function(first, last, tan1, tan2) {
                    if (last - first == 1) {
                        var pt1 = this.points[first],
                            pt2 = this.points[last],
                            dist = pt1.getDistance(pt2) / 3;
            Severity: Minor
            Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

              Function inject has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      inject: function inject() {
                          for (var i = 0, l = arguments.length; i < l; i++) {
                              var src = arguments[i],
                                  events = src._events;
                              if (events) {
              Severity: Minor
              Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

                Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    toggleClass: function( value, stateVal ) {
                        var type = typeof value;
                
                        if ( typeof stateVal === "boolean" && type === "string" ) {
                            return stateVal ? this.addClass( value ) : this.removeClass( value );
                Severity: Minor
                Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

                  Function MockHttpExpectation has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function MockHttpExpectation(method, url, data, headers) {
                  
                    this.data = data;
                    this.headers = headers;
                  
                  
                  Severity: Minor
                  Found in app/bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

                    Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        toggleClass: function( value, stateVal ) {
                            var type = typeof value;
                    
                            if ( typeof stateVal === "boolean" && type === "string" ) {
                                return stateVal ? this.addClass( value ) : this.removeClass( value );
                    Severity: Minor
                    Found in app/bower_components/jquery/src/attributes/classes.js - About 1 hr to fix

                      Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        Collapse.prototype.show = function () {
                          if (this.transitioning || this.$element.hasClass('in')) return
                      
                          var startEvent = $.Event('show.bs.collapse')
                          this.$element.trigger(startEvent)
                      Severity: Minor
                      Found in app/bower_components/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

                        Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          Collapse.prototype.show = function () {
                            if (this.transitioning || this.$element.hasClass('in')) return
                        
                            var startEvent = $.Event('show.bs.collapse')
                            this.$element.trigger(startEvent)
                        Severity: Minor
                        Found in app/bower_components/bootstrap/js/collapse.js - About 1 hr to fix

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

                          angular.module("template/datepicker/datepicker.html", []).run(["$templateCache", function($templateCache) {
                            $templateCache.put("template/datepicker/datepicker.html",
                              "<div ng-switch=\"datepickerMode\" role=\"application\" ng-keydown=\"keydown($event)\">\n" +
                              "  <daypicker ng-switch-when=\"day\" tabindex=\"0\"></daypicker>\n" +
                              "  <monthpicker ng-switch-when=\"month\" tabindex=\"0\"></monthpicker>\n" +
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3950..3957
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3985..3992
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3994..4001
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4033..4040
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4109..4116

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

                          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 6 locations. Consider refactoring.
                          Open

                          angular.module("template/modal/backdrop.html", []).run(["$templateCache", function($templateCache) {
                            $templateCache.put("template/modal/backdrop.html",
                              "<div class=\"modal-backdrop fade\"\n" +
                              "     ng-class=\"{in: animate}\"\n" +
                              "     ng-style=\"{'z-index': 1040 + (index && 1 || 0) + index*10}\"\n" +
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3858..3865
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3985..3992
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3994..4001
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4033..4040
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4109..4116

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

                          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

                          if ( window.ActiveXObject ) {
                              jQuery( window ).on( "unload", function() {
                                  for ( var key in xhrCallbacks ) {
                                      xhrCallbacks[ key ]();
                                  }
                          Severity: Major
                          Found in app/bower_components/jquery/src/ajax/xhr.js and 1 other location - About 1 hr to fix
                          app/bower_components/jquery/dist/jquery.js on lines 8532..8538

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

                          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 6 locations. Consider refactoring.
                          Open

                          angular.module("template/rating/rating.html", []).run(["$templateCache", function($templateCache) {
                            $templateCache.put("template/rating/rating.html",
                              "<span ng-mouseleave=\"reset()\" ng-keydown=\"onKeydown($event)\" tabindex=\"0\" role=\"slider\" aria-valuemin=\"0\" aria-valuemax=\"{{range.length}}\" aria-valuenow=\"{{value}}\">\n" +
                              "    <i ng-repeat=\"r in range track by $index\" ng-mouseenter=\"enter($index + 1)\" ng-click=\"rate($index + 1)\" class=\"glyphicon\" ng-class=\"$index < value && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')\">\n" +
                              "        <span class=\"sr-only\">({{ $index < value ? '*' : ' ' }})</span>\n" +
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3858..3865
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3950..3957
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3985..3992
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3994..4001
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4109..4116

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

                          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 6 locations. Consider refactoring.
                          Open

                          angular.module("template/tooltip/tooltip-html-unsafe-popup.html", []).run(["$templateCache", function($templateCache) {
                            $templateCache.put("template/tooltip/tooltip-html-unsafe-popup.html",
                              "<div class=\"tooltip {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
                              "  <div class=\"tooltip-arrow\"></div>\n" +
                              "  <div class=\"tooltip-inner\" bind-html-unsafe=\"content\"></div>\n" +
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3858..3865
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3950..3957
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3994..4001
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4033..4040
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4109..4116

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

                          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 6 locations. Consider refactoring.
                          Open

                          angular.module("template/tooltip/tooltip-popup.html", []).run(["$templateCache", function($templateCache) {
                            $templateCache.put("template/tooltip/tooltip-popup.html",
                              "<div class=\"tooltip {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
                              "  <div class=\"tooltip-arrow\"></div>\n" +
                              "  <div class=\"tooltip-inner\" ng-bind=\"content\"></div>\n" +
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3858..3865
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3950..3957
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3985..3992
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4033..4040
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4109..4116

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

                          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 6 locations. Consider refactoring.
                          Open

                          angular.module("template/typeahead/typeahead-popup.html", []).run(["$templateCache", function($templateCache) {
                            $templateCache.put("template/typeahead/typeahead-popup.html",
                              "<ul class=\"dropdown-menu\" ng-if=\"isOpen()\" ng-style=\"{top: position.top+'px', left: position.left+'px'}\" style=\"display: block;\" role=\"listbox\" aria-hidden=\"{{!isOpen()}}\">\n" +
                              "    <li ng-repeat=\"match in matches track by $index\" ng-class=\"{active: isActive($index) }\" ng-mouseenter=\"selectActive($index)\" ng-click=\"selectMatch($index)\" role=\"option\" id=\"{{match.id}}\">\n" +
                              "        <div typeahead-match index=\"$index\" match=\"match\" query=\"query\" template-url=\"templateUrl\"></div>\n" +
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3858..3865
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3950..3957
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3985..3992
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 3994..4001
                          app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js on lines 4033..4040

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

                          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 multipleContexts( selector, contexts, results ) {
                              var i = 0,
                                  len = contexts.length;
                              for ( ; i < len; i++ ) {
                                  Sizzle( selector, contexts[i], results );
                          Severity: Major
                          Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                          app/bower_components/jquery/dist/jquery.js on lines 2133..2140

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

                          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