JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

Consider simplifying this complex logical expression.
Open

            if ( matcher[ expando ] ) {
                // Find the next relative operator (if any) for proper handling
                j = ++i;
                for ( ; j < len; j++ ) {
                    if ( Expr.relative[ tokens[j].type ] ) {
Severity: Major
Found in app/bower_components/jquery/src/sizzle/dist/sizzle.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

          if (next && last && next.$$route === last.$$route
              && angular.equals(next.pathParams, last.pathParams)
              && !next.reloadOnSearch && !forceReload) {
            last.params = next.params;
            angular.copy(last.params, $routeParams);
    Severity: Major
    Found in app/bower_components/angular-route/angular-route.js - About 40 mins to fix

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

      jQuery.fn.ready = function( fn ) {
          // Add the callback
          jQuery.ready.promise().done( fn );
      
          return this;
      Severity: Minor
      Found in app/bower_components/jquery/dist/jquery.js and 1 other location - About 40 mins to fix
      app/bower_components/jquery/src/core/ready.js on lines 10..15

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

      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.ready = function( fn ) {
          // Add the callback
          jQuery.ready.promise().done( fn );
      
          return this;
      Severity: Minor
      Found in app/bower_components/jquery/src/core/ready.js and 1 other location - About 40 mins to fix
      app/bower_components/jquery/dist/jquery.js on lines 3350..3355

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

      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

            compileTheme: {
              options: {
                strictMath: true,
                sourceMap: true,
                outputSourceFiles: true,
      Severity: Minor
      Found in app/bower_components/bootstrap/Gruntfile.js and 1 other location - About 40 mins to fix
      app/bower_components/bootstrap/Gruntfile.js on lines 150..161

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

      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

            compileCore: {
              options: {
                strictMath: true,
                sourceMap: true,
                outputSourceFiles: true,
      Severity: Minor
      Found in app/bower_components/bootstrap/Gruntfile.js and 1 other location - About 40 mins to fix
      app/bower_components/bootstrap/Gruntfile.js on lines 162..173

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

      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 generateBezier has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          generateBezier: function(first, last, uPrime, tan1, tan2) {
      Severity: Minor
      Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

        Function _drawSelection has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            _drawSelection: function(ctx, matrix, size, selectedItems, updateVersion) {
        Severity: Minor
        Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

          Function viewBox has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  viewBox: function(item, value, name, node, styles) {
          Severity: Minor
          Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

            Function _addSquareCap has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                _addSquareCap: function(segment, cap, radius, addPoint, area) {
            Severity: Minor
            Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

              Function initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  initialize: function MouseEvent(type, event, point, target, delta) {
              Severity: Minor
              Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                Function process has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    this.process = function(mode, srcContext, dstContext, alpha, offset) {
                Severity: Minor
                Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                  Function inject has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function inject(dest, src, enumerable, beans, preserve) {
                  Severity: Minor
                  Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                    Function initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        initialize: function Line(arg0, arg1, arg2, arg3, arg4) {
                    Severity: Minor
                    Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                      Function createShape has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function createShape(type, point, size, radius, args) {
                      Severity: Minor
                      Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                        Function set has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            set: function(x, y, width, height, _dontNotify) {
                        Severity: Minor
                        Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                          Function getBounds has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              getBounds: function(segments, closed, style, matrix, strokePadding) {
                          Severity: Minor
                          Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                            Function readNamed has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    readNamed: function(list, name, start, options, length) {
                            Severity: Minor
                            Found in app/bower_components/paper/dist/paper-core.js - About 35 mins to fix

                              Function _drawSelection has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  _drawSelection: function(ctx, matrix, size, selectedItems, updateVersion) {
                              Severity: Minor
                              Found in app/bower_components/paper/dist/paper-full.js - About 35 mins to fix

                                Function inject has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    function inject(dest, src, enumerable, beans, preserve) {
                                Severity: Minor
                                Found in app/bower_components/paper/dist/paper-full.js - About 35 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language