JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    dispatch: function( event ) {

        // Make a writable jQuery.Event from the native event object
        event = jQuery.event.fix( event );

Severity: Minor
Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

    Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
        var i = 0,
            len = elems.length,
            bulk = key == null;
    
    
    Severity: Minor
    Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

      Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
          var i = 0,
              len = elems.length,
              bulk = key == null;
      
      
      Severity: Minor
      Found in app/bower_components/jquery/src/core/access.js - About 1 hr to fix

        Function animate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          .config(['$provide', function($provide) {
        
            var reflowQueue = [];
            $provide.value('$$animateReflow', function(fn) {
              var index = reflowQueue.length;
        Severity: Minor
        Found in app/bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

          Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function showHide( elements, show ) {
              var display, elem, hidden,
                  values = [],
                  index = 0,
                  length = elements.length;
          Severity: Minor
          Found in app/bower_components/jquery/src/css.js - About 1 hr to fix

            Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                dispatch: function( event ) {
            
                    // Make a writable jQuery.Event from the native event object
                    event = jQuery.event.fix( event );
            
            
            Severity: Minor
            Found in app/bower_components/jquery/src/event.js - About 1 hr to fix

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

              function toSelector( tokens ) {
                  var i = 0,
                      len = tokens.length,
                      selector = "";
                  for ( ; i < len; i++ ) {
              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 1507..1515

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

              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 toSelector( tokens ) {
                  var i = 0,
                      len = tokens.length,
                      selector = "";
                  for ( ; i < len; i++ ) {
              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 2056..2064

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

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

                  join: function(path) {
                      if (path) {
                          var segments = path._segments,
                              last1 = this.getLastSegment(),
                              last2 = path.getLastSegment();
              Severity: Minor
              Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

                Function addCurveLineIntersections has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function addCurveLineIntersections(v1, v2, curve1, curve2, locations,
                            include) {
                        var flip = Curve.isLinear(v1),
                            vc = flip ? v2 : v1,
                            vl = flip ? v1 : v2,
                Severity: Minor
                Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

                  Function addCurveLineIntersections has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function addCurveLineIntersections(v1, v2, curve1, curve2, locations,
                              include) {
                          var flip = Curve.isLinear(v1),
                              vc = flip ? v2 : v1,
                              vl = flip ? v1 : v2,
                  Severity: Minor
                  Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

                    Function join has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        join: function(path) {
                            if (path) {
                                var segments = path._segments,
                                    last1 = this.getLastSegment(),
                                    last2 = path.getLastSegment();
                    Severity: Minor
                    Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

                      Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          setOffset: function( elem, options, i ) {
                              var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                  position = jQuery.css( elem, "position" ),
                                  curElem = jQuery( elem ),
                                  props = {};
                      Severity: Minor
                      Found in app/bower_components/jquery/dist/jquery.js - About 1 hr to fix

                        Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            setOffset: function( elem, options, i ) {
                                var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                                    position = jQuery.css( elem, "position" ),
                                    curElem = jQuery( elem ),
                                    props = {};
                        Severity: Minor
                        Found in app/bower_components/jquery/src/offset.js - About 1 hr to fix

                          Function MockXhr has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function MockXhr() {
                          
                            // hack for testing $http, $httpBackend
                            MockXhr.$$lastInstance = this;
                          
                          
                          Severity: Minor
                          Found in app/bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

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

                              Modal.prototype.show = function (_relatedTarget) {
                                var that = this
                                var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
                            
                                this.$element.trigger(e)
                            Severity: Minor
                            Found in app/bower_components/bootstrap/js/modal.js - About 1 hr to fix

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

                                Modal.prototype.show = function (_relatedTarget) {
                                  var that = this
                                  var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
                              
                                  this.$element.trigger(e)
                              Severity: Minor
                              Found in app/bower_components/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

                                Function backdrop has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Modal.prototype.backdrop = function (callback) {
                                    var that = this
                                    var animate = this.$element.hasClass('fade') ? 'fade' : ''
                                
                                    if (this.isShown && this.options.backdrop) {
                                Severity: Minor
                                Found in app/bower_components/bootstrap/js/modal.js - About 1 hr to fix

                                  Function backdrop has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    Modal.prototype.backdrop = function (callback) {
                                      var that = this
                                      var animate = this.$element.hasClass('fade') ? 'fade' : ''
                                  
                                      if (this.isShown && this.options.backdrop) {
                                  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

                                    jQuery.acceptData = function( owner ) {
                                        // Accepts only:
                                        //  - Node
                                        //    - Node.ELEMENT_NODE
                                        //    - Node.DOCUMENT_NODE
                                    Severity: Major
                                    Found in app/bower_components/jquery/src/data/accepts.js and 1 other location - About 1 hr to fix
                                    app/bower_components/jquery/dist/jquery.js on lines 3497..3506

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

                                    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