krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function stepThroughMatches has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function stepThroughMatches(node, matches, replaceFn) {
            var startNode, endNode, startNodeIndex,
                endNodeIndex, innerNodes = [], atIndex = 0, curNode = node,
                matchLocation, matchIndex = 0;

Severity: Major
Found in bower_components/tinymce/plugins/spellchecker/plugin.js - About 2 hrs to fix

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

    var
        version = "@VERSION",
    
        // Define a local copy of jQuery
        jQuery = function( selector, context ) {
    Severity: Major
    Found in bower_components/jquery/src/core.js and 1 other location - About 2 hrs to fix
    bower_components/jquery/dist/jquery.js on lines 66..87

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

    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

    var
        version = "1.11.1",
    
        // Define a local copy of jQuery
        jQuery = function( selector, context ) {
    Severity: Major
    Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
    bower_components/jquery/src/core.js on lines 13..34

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

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

            superMatcher = function( seed, context, xml, results, outermost ) {
                var elem, j, matcher,
                    matchedCount = 0,
                    i = "0",
                    unmatched = seed && [],
    Severity: Major
    Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

      Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              superMatcher = function( seed, context, xml, results, outermost ) {
                  var elem, j, matcher,
                      matchedCount = 0,
                      i = "0",
                      unmatched = seed && [],
      Severity: Major
      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

        Function run has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        app.run = function (o) {
            var options = extend(settings, o), images = [];
        
            if(options.images instanceof window.NodeList){
                imageNodes = options.images;
        Severity: Major
        Found in bower_components/bootstrap/docs/assets/js/holder/holder.js - About 2 hrs to fix

          Function renderIframeUI has 60 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function renderIframeUI(args) {
                  var panel, resizeHandleCtrl, startSize;
          
                  if (args.skinUiCss) {
                      tinymce.DOM.loadCSS(args.skinUiCss);
          Severity: Major
          Found in public/javascripts/themes/modern/theme.js - About 2 hrs to fix

            Function domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                domManip: function( args, callback ) {
            
                    // Flatten any nested arrays
                    args = concat.apply( [], args );
            
            
            Severity: Major
            Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

              Function domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  domManip: function( args, callback ) {
              
                      // Flatten any nested arrays
                      args = concat.apply( [], args );
              
              
              Severity: Major
              Found in bower_components/jquery/src/manipulation.js - About 2 hrs to fix

                Function send has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                send: function( headers, complete ) {
                                    var i,
                                        xhr = options.xhr(),
                                        id = ++xhrId;
                
                
                Severity: Major
                Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                  Function init has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      init = jQuery.fn.init = function( selector, context ) {
                          var match, elem;
                  
                          // HANDLE: $(""), $(null), $(undefined), $(false)
                          if ( !selector ) {
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

                    Function send has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    send: function( headers, complete ) {
                                        var i,
                                            xhr = options.xhr(),
                                            id = ++xhrId;
                    
                    
                    Severity: Major
                    Found in bower_components/jquery/src/ajax/xhr.js - About 2 hrs to fix

                      Function init has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          init = jQuery.fn.init = function( selector, context ) {
                              var match, elem;
                      
                              // HANDLE: $(""), $(null), $(undefined), $(false)
                              if ( !selector ) {
                      Severity: Major
                      Found in bower_components/jquery/src/core/init.js - About 2 hrs to fix

                        Function renderIframeUI has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function renderIframeUI(args) {
                                var panel, resizeHandleCtrl, startSize;
                        
                                if (args.skinUiCss) {
                                    tinymce.DOM.loadCSS(args.skinUiCss);
                        Severity: Major
                        Found in bower_components/tinymce/themes/modern/theme.js - About 2 hrs to fix

                          Function merge has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function merge(cell, cols, rows) {
                                      var pos, startX, startY, endX, endY, x, y, startCell, endCell, children, count;
                          
                                      // Use specified cell and cols/rows
                                      if (cell) {
                          Severity: Major
                          Found in bower_components/tinymce/plugins/table/plugin.js - About 2 hrs to fix

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

                            if ( !support.hrefNormalized ) {
                                // href/src property should get the full normalized URL (#10299/#12915)
                                jQuery.each([ "href", "src" ], function( i, name ) {
                                    jQuery.propHooks[ name ] = {
                                        get: function( elem ) {
                            Severity: Major
                            Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                            bower_components/jquery/src/attributes/prop.js on lines 82..91

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

                            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 elementMatcher( matchers ) {
                                return matchers.length > 1 ?
                                    function( elem, context, xml ) {
                                        var i = matchers.length;
                                        while ( i-- ) {
                            Severity: Major
                            Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                            bower_components/jquery/src/sizzle/dist/sizzle.js on lines 1570..1582

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

                            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 ( !support.hrefNormalized ) {
                                // href/src property should get the full normalized URL (#10299/#12915)
                                jQuery.each([ "href", "src" ], function( i, name ) {
                                    jQuery.propHooks[ name ] = {
                                        get: function( elem ) {
                            Severity: Major
                            Found in bower_components/jquery/src/attributes/prop.js and 1 other location - About 2 hrs to fix
                            bower_components/jquery/dist/jquery.js on lines 8225..8234

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

                            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 elementMatcher( matchers ) {
                                return matchers.length > 1 ?
                                    function( elem, context, xml ) {
                                        var i = matchers.length;
                                        while ( i-- ) {
                            Severity: Major
                            Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 2 hrs to fix
                            bower_components/jquery/dist/jquery.js on lines 2155..2167

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

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

                                Deferred: function( func ) {
                                    var tuples = [
                                            // action, add listener, listener list, final state
                                            [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                            [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                            Severity: Major
                            Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language