JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

Function createNew has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      createNew: function () {
        var stack = [];

        return {
          add: function (key, value) {
Severity: Minor
Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

    Function createNew has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          createNew: function () {
            var stack = [];
    
            return {
              add: function (key, value) {

      Consider simplifying this complex logical expression.
      Open

              if (browser.chrome && version >= 30
                      || browser.webkit && version >= 537.76
                      || browser.firefox && version >= 23) {
                  var offset = 0;
                  if (window.location.href.indexOf(url) === 0) {
      Severity: Critical
      Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

        jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
            function( elem, computed ) {
                if ( computed ) {
                    // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
                    // Work around by temporarily setting element display to inline-block
        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.js on lines 367..376

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

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

              right: function(contextSelector) {
                if (contextSelector == null) {
                  contextSelector = window;
                }
                return jQMethods._filter(contextSelector, 'horizontal', function(context, waypoint) {
        Severity: Major
        Found in app/bower_components/jquery-waypoints/waypoints.js and 3 other locations - About 1 hr to fix
        app/bower_components/jquery-waypoints/waypoints.js on lines 424..431
        app/bower_components/jquery-waypoints/waypoints.js on lines 432..439
        app/bower_components/jquery-waypoints/waypoints.js on lines 440..447

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

        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

        isXML = Sizzle.isXML = function( elem ) {
            // documentElement is verified for cases where it doesn't yet exist
            // (such as loading iframes in IE - #4833)
            var documentElement = elem && (elem.ownerDocument || elem).documentElement;
            return documentElement ? documentElement.nodeName !== "HTML" : false;
        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/sizzle/dist/sizzle.js on lines 451..456

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

        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.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
            function( elem, computed ) {
                if ( computed ) {
                    // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
                    // Work around by temporarily setting element display to inline-block
        Severity: Major
        Found in app/bower_components/jquery/src/css.js and 1 other location - About 1 hr to fix
        app/bower_components/jquery/dist/jquery.js on lines 6040..6049

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

        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

        isXML = Sizzle.isXML = function( elem ) {
            // documentElement is verified for cases where it doesn't yet exist
            // (such as loading iframes in IE - #4833)
            var documentElement = elem && (elem.ownerDocument || elem).documentElement;
            return documentElement ? documentElement.nodeName !== "HTML" : false;
        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 1000..1005

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

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

              above: function(contextSelector) {
                if (contextSelector == null) {
                  contextSelector = window;
                }
                return jQMethods._filter(contextSelector, 'vertical', function(context, waypoint) {
        Severity: Major
        Found in app/bower_components/jquery-waypoints/waypoints.js and 3 other locations - About 1 hr to fix
        app/bower_components/jquery-waypoints/waypoints.js on lines 432..439
        app/bower_components/jquery-waypoints/waypoints.js on lines 440..447
        app/bower_components/jquery-waypoints/waypoints.js on lines 448..455

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

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

              below: function(contextSelector) {
                if (contextSelector == null) {
                  contextSelector = window;
                }
                return jQMethods._filter(contextSelector, 'vertical', function(context, waypoint) {
        Severity: Major
        Found in app/bower_components/jquery-waypoints/waypoints.js and 3 other locations - About 1 hr to fix
        app/bower_components/jquery-waypoints/waypoints.js on lines 424..431
        app/bower_components/jquery-waypoints/waypoints.js on lines 440..447
        app/bower_components/jquery-waypoints/waypoints.js on lines 448..455

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

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

              left: function(contextSelector) {
                if (contextSelector == null) {
                  contextSelector = window;
                }
                return jQMethods._filter(contextSelector, 'horizontal', function(context, waypoint) {
        Severity: Major
        Found in app/bower_components/jquery-waypoints/waypoints.js and 3 other locations - About 1 hr to fix
        app/bower_components/jquery-waypoints/waypoints.js on lines 424..431
        app/bower_components/jquery-waypoints/waypoints.js on lines 432..439
        app/bower_components/jquery-waypoints/waypoints.js on lines 448..455

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

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

          _.template = function(text, data, settings) {
            var render;
            settings = _.defaults({}, settings, _.templateSettings);
        
            // Combine delimiters into one regular expression via alternation.
        Severity: Minor
        Found in app/bower_components/underscore/underscore.js - About 1 hr to fix

          Function transform has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              transform: function(matrix, _applyMatrix) {
                  if (matrix && matrix.isIdentity())
                      matrix = null;
                  var _matrix = this._matrix,
                      applyMatrix = (_applyMatrix || this._applyMatrix)
          Severity: Minor
          Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

            Function statics has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            statics: new function() {
                function createShape(type, point, size, radius, args) {
                    var item = new Shape(Base.getNamed(args));
                    item._type = type;
                    item._size = size;
            Severity: Minor
            Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

              Function statics has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              statics: new function() {
                  function createShape(type, point, size, radius, args) {
                      var item = new Shape(Base.getNamed(args));
                      item._type = type;
                      item._size = size;
              Severity: Minor
              Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

                Function transform has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    transform: function(matrix, _applyMatrix) {
                        if (matrix && matrix.isIdentity())
                            matrix = null;
                        var _matrix = this._matrix,
                            applyMatrix = (_applyMatrix || this._applyMatrix)
                Severity: Minor
                Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                    self.select = $scope.select = function(nextSlide, direction) {
                      var nextIndex = slides.indexOf(nextSlide);
                      //Decide direction if it's not given
                      if (direction === undefined) {
                        direction = nextIndex > currentIndex ? 'next' : 'prev';
                  Severity: Minor
                  Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

                      self.select = $scope.select = function(nextSlide, direction) {
                        var nextIndex = slides.indexOf(nextSlide);
                        //Decide direction if it's not given
                        if (direction === undefined) {
                          direction = nextIndex > currentIndex ? 'next' : 'prev';

                      Function addCurveIntersections has 13 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function addCurveIntersections(v1, v2, curve1, curve2, locations, include,
                                  tMin, tMax, uMin, uMax, oldTDiff, reverse, recursion) {
                      Severity: Major
                      Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

                        Function addCurveIntersections has 13 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            function addCurveIntersections(v1, v2, curve1, curve2, locations, include,
                                    tMin, tMax, uMin, uMax, oldTDiff, reverse, recursion) {
                        Severity: Major
                        Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language