krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

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

function addHandle( attrs, handler ) {
    var arr = attrs.split("|"),
        i = attrs.length;

    while ( i-- ) {
Severity: Major
Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
bower_components/jquery/src/sizzle/dist/sizzle.js on lines 352..359

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

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 bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
bower_components/jquery/src/css.js on lines 420..429

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

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 addHandle( attrs, handler ) {
    var arr = attrs.split("|"),
        i = attrs.length;

    while ( i-- ) {
Severity: Major
Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
bower_components/jquery/dist/jquery.js on lines 937..944

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

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

                while (true) {
                    if (curNode.nextSibling) {
                        curNode = curNode.nextSibling;
                        break;
                    } else if (curNode.parentNode !== node) {
Severity: Major
Found in bower_components/tinymce/plugins/spellchecker/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/searchreplace/plugin.js on lines 142..151

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

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 bower_components/jquery/src/css.js and 1 other location - About 1 hr to fix
bower_components/jquery/dist/jquery.js on lines 6808..6817

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

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

                while (true) {
                    if (curNode.nextSibling) {
                        curNode = curNode.nextSibling;
                        break;
                    } else if (curNode.parentNode !== node) {
Severity: Major
Found in bower_components/tinymce/plugins/searchreplace/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/spellchecker/plugin.js on lines 226..235

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

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 (hasClass(n, editor.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) {
                n.innerHTML = getDateTime(editor.getParam("template_mdate_format", editor.getLang("template.mdate_format")));
            }
Severity: Major
Found in bower_components/tinymce/plugins/template/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/template/plugin.js on lines 213..215

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

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 (hasClass(n, editor.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|'))) {
                n.innerHTML = getDateTime(editor.getParam("template_cdate_format", editor.getLang("template.cdate_format")));
            }
Severity: Major
Found in bower_components/tinymce/plugins/template/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/template/plugin.js on lines 218..220

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

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

    each: function( obj, callback, args ) {
        var value,
            i = 0,
            length = obj.length,
            isArray = isArraylike( obj );
Severity: Minor
Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

    Function computeStyleTests has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function computeStyleTests() {
            // Minified: var b,c,d,j
            var div, body, container, contents;
    
            body = document.getElementsByTagName( "body" )[ 0 ];
    Severity: Minor
    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

      Function computeStyleTests has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function computeStyleTests() {
              // Minified: var b,c,d,j
              var div, body, container, contents;
      
              body = document.getElementsByTagName( "body" )[ 0 ];
      Severity: Minor
      Found in bower_components/jquery/src/css/support.js - About 1 hr to fix

        Function onSelectTemplate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function onSelectTemplate(e) {
                    var value = e.control.value();
        
                    function insertIframeHtml(html) {
                        if (html.indexOf('<html>') == -1) {
        Severity: Minor
        Found in bower_components/tinymce/plugins/template/plugin.js - About 1 hr to fix

          Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              each: function( obj, callback, args ) {
                  var value,
                      i = 0,
                      length = obj.length,
                      isArray = isArraylike( obj );
          Severity: Minor
          Found in bower_components/jquery/src/core.js - About 1 hr to fix

            Function onSubmitRowForm has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function onSubmitRowForm() {
                            var tableElm, oldParentElm, parentElm;
            
                            updateStyle(dom, this);
                            data = Tools.extend(data, this.toJSON());
            Severity: Minor
            Found in bower_components/tinymce/plugins/table/plugin.js - About 1 hr to fix

              Function toggleFullscreen has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function toggleFullscreen() {
                      var body = document.body, documentElement = document.documentElement, editorContainerStyle;
                      var editorContainer, iframe, iframeStyle;
              
                      function resize() {
              Severity: Minor
              Found in bower_components/tinymce/plugins/fullscreen/plugin.js - About 1 hr to fix

                Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function ajaxHandleResponses( s, jqXHR, responses ) {
                    var firstDataType, ct, finalDataType, type,
                        contents = s.contents,
                        dataTypes = s.dataTypes;
                
                
                Severity: Minor
                Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                  Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function ajaxHandleResponses( s, jqXHR, responses ) {
                      var firstDataType, ct, finalDataType, type,
                          contents = s.contents,
                          dataTypes = s.dataTypes;
                  
                  
                  Severity: Minor
                  Found in bower_components/jquery/src/ajax.js - About 1 hr to fix

                    Function attachDatePickerEvents has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    attachDatePickerEvents = function () {
                                        var $this, $parent, expanded, closed, collapseData;
                                        picker.widget.on('click', '.datepicker *', $.proxy(click, this)); // this handles date picker clicks
                                        picker.widget.on('click', '[data-action]', $.proxy(doAction, this)); // this handles time picker clicks
                                        picker.widget.on('mousedown', $.proxy(stopEvent, this));

                      Function getSelectors has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function getSelectors(doc, fileFilter) {
                              var selectors = [], contentCSSUrls = {};
                      
                              function append(styleSheet, imported) {
                                  var href = styleSheet.href, rules;
                      Severity: Minor
                      Found in bower_components/tinymce/plugins/importcss/plugin.js - About 1 hr to fix

                        Function insertCol has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function insertCol(before) {
                                    var posX, lastCell;
                        
                                    // Find first/last column
                                    each(grid, function(row) {
                        Severity: Minor
                        Found in bower_components/tinymce/plugins/table/plugin.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language