krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function ajaxConvert( s, response, jqXHR, isSuccess ) {
    var conv2, current, conv, tmp, prev,
        converters = {},
        // Work with a copy of dataTypes in case we need to modify it for conversion
        dataTypes = s.dataTypes.slice();
Severity: Major
Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

    Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function ajaxConvert( s, response, jqXHR, isSuccess ) {
        var conv2, current, conv, tmp, prev,
            converters = {},
            // Work with a copy of dataTypes in case we need to modify it for conversion
            dataTypes = s.dataTypes.slice();
    Severity: Major
    Found in bower_components/jquery/src/ajax.js - About 2 hrs to fix

      Function getSelectedTextBlocks has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  function getSelectedTextBlocks() {
                      var textBlocks = [], root = editor.getBody();
      
                      function getEndPointNode(start) {
                          var container, offset;
      Severity: Major
      Found in bower_components/tinymce/plugins/lists/plugin.js - About 2 hrs to fix

        Function insertRow has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function insertRow(before) {
                    var posY, cell, lastCell, x, rowElm, newRow, newCell, otherCell, rowSpan;
        
                    // Find first/last row
                    each(grid, function(row, y) {
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js - About 2 hrs to fix

          Function genReplacer has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function genReplacer(nodeName) {
                      var makeReplacementNode;
          
                      if (typeof nodeName != 'function') {
                          var stencilNode = nodeName.nodeType ? nodeName : doc.createElement(nodeName);
          Severity: Major
          Found in bower_components/tinymce/plugins/searchreplace/plugin.js - About 2 hrs to fix

            Function renderColorPicker has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function renderColorPicker() {
                    var ctrl = this, colors, color, html, last, x, y, i, id = ctrl._id, count = 0;
            
                    function getColorCellHtml(color, title) {
                        var isNoColor = color == 'transparent';
            Severity: Major
            Found in bower_components/tinymce/plugins/textcolor/plugin.js - About 2 hrs to fix

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

              function createSafeFragment( document ) {
                  var list = nodeNames.split( "|" ),
                      safeFrag = document.createDocumentFragment();
              
                  if ( safeFrag.createElement ) {
              Severity: Major
              Found in bower_components/jquery/src/manipulation.js and 1 other location - About 2 hrs to fix
              bower_components/jquery/dist/jquery.js on lines 5272..5284

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

              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 createSafeFragment( document ) {
                  var list = nodeNames.split( "|" ),
                      safeFrag = document.createDocumentFragment();
              
                  if ( safeFrag.createElement ) {
              Severity: Major
              Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
              bower_components/jquery/src/manipulation.js on lines 18..30

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

              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

                                          if (nonEditableParent && getContentEditable(nonEditableParent) === "false") {
                                              e.preventDefault();
              
                                              if (keyCode == VK.RIGHT) {
                                                  positionCaretOnElement(nonEditableParent, false);
              Severity: Major
              Found in bower_components/tinymce/plugins/noneditable/plugin.js and 1 other location - About 2 hrs to fix
              bower_components/tinymce/plugins/noneditable/plugin.js on lines 388..399

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

              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

                                          if (nonEditableParent && getContentEditable(nonEditableParent) === "false") {
                                              e.preventDefault();
              
                                              if (keyCode == VK.LEFT) {
                                                  positionCaretOnElement(nonEditableParent, true);
              Severity: Major
              Found in bower_components/tinymce/plugins/noneditable/plugin.js and 1 other location - About 2 hrs to fix
              bower_components/tinymce/plugins/noneditable/plugin.js on lines 406..417

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

              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

              File bootstrap-tooltip.js has 258 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /* ===========================================================
               * bootstrap-tooltip.js v2.3.2
               * http://twbs.github.com/bootstrap/javascript.html#tooltips
               * Inspired by the original jQuery.tipsy by Jason Frame
               * ===========================================================
              Severity: Minor
              Found in bower_components/bootstrap/docs/assets/js/bootstrap-tooltip.js - About 2 hrs to fix

                File bootstrap-tooltip.js has 258 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* ===========================================================
                 * bootstrap-tooltip.js v2.3.2
                 * http://getbootstrap.com/2.3.2/javascript.html#tooltips
                 * Inspired by the original jQuery.tipsy by Jason Frame
                 * ===========================================================
                Severity: Minor
                Found in bower_components/bootstrap/js/bootstrap-tooltip.js - About 2 hrs to fix

                  Function genReplacer has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function genReplacer(callback) {
                              function makeReplacementNode(fill, matchIndex) {
                                  var match = matches[matchIndex];
                  
                                  if (!match.stencil) {
                  Severity: Major
                  Found in bower_components/tinymce/plugins/spellchecker/plugin.js - About 2 hrs to fix

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

                    jQuery.fx.timer = function( timer ) {
                        jQuery.timers.push( timer );
                        if ( timer() ) {
                            jQuery.fx.start();
                        } else {
                    Severity: Major
                    Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                    bower_components/jquery/src/effects.js on lines 626..633

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

                    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.fx.timer = function( timer ) {
                        jQuery.timers.push( timer );
                        if ( timer() ) {
                            jQuery.fx.start();
                        } else {
                    Severity: Major
                    Found in bower_components/jquery/src/effects.js and 1 other location - About 2 hrs to fix
                    bower_components/jquery/dist/jquery.js on lines 7612..7619

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

                    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

                                    if (startNode && endNode) {
                                        curNode = replaceFn({
                                            startNode: startNode,
                                            startNodeIndex: startNodeIndex,
                                            endNode: endNode,
                    Severity: Major
                    Found in bower_components/tinymce/plugins/spellchecker/plugin.js and 1 other location - About 2 hrs to fix
                    bower_components/tinymce/plugins/searchreplace/plugin.js on lines 107..139

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

                    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

                                    if (startNode && endNode) {
                                        curNode = replaceFn({
                                            startNode: startNode,
                                            startNodeIndex: startNodeIndex,
                                            endNode: endNode,
                    Severity: Major
                    Found in bower_components/tinymce/plugins/searchreplace/plugin.js and 1 other location - About 2 hrs to fix
                    bower_components/tinymce/plugins/spellchecker/plugin.js on lines 191..223

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

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

                            self.backspaceDelete = function(isForward) {
                                function findNextCaretContainer(rng, isForward) {
                                    var node = rng.startContainer, offset = rng.startOffset;
                    
                                    if (node.nodeType == 3 && (isForward ? offset < node.data.length : offset > 0)) {
                    Severity: Major
                    Found in bower_components/tinymce/plugins/lists/plugin.js - About 2 hrs to fix

                      Function setEndCell has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function setEndCell(cell) {
                                  var startX, startY, endX, endY, maxX, maxY, colSpan, rowSpan, x, y;
                      
                                  endPos = getPos(cell);
                      
                      
                      Severity: Major
                      Found in bower_components/tinymce/plugins/table/plugin.js - About 2 hrs to fix

                        Function showSuggestions has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function showSuggestions(word, spans) {
                                    var items = [], suggestions = lastSuggestions[word];
                        
                                    Tools.each(suggestions, function(suggestion) {
                                        items.push({
                        Severity: Major
                        Found in bower_components/tinymce/plugins/spellchecker/plugin.js - About 2 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language