krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function hasSideContent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            function hasSideContent(element, left) {
                var container, offset, walker, node, len;

                container = rng.startContainer;
                offset = rng.startOffset;
Severity: Minor
Found in bower_components/tinymce/plugins/noneditable/plugin.js - About 1 hr to fix

    Function createBookmark has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function createBookmark(rng) {
                var bookmark = {};
    
                function setupEndPoint(start) {
                    var offsetNode, container, offset;
    Severity: Minor
    Found in bower_components/tinymce/plugins/lists/plugin.js - About 1 hr to fix

      Function walk has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function walk(node) {
                  var name = node.name, currentNode = node;
      
                  if (name === 'br') {
                      text += '\n';
      Severity: Minor
      Found in bower_components/tinymce/plugins/paste/plugin.js - About 1 hr to fix

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

                            each('left center right'.split(' '), function(name) {
                                if (editor.formatter.matchNode(tableElm, 'align' + name)) {
                                    data.align = name;
                                }
                            });
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js and 3 other locations - About 1 hr to fix
        bower_components/tinymce/plugins/table/plugin.js on lines 1935..1939
        bower_components/tinymce/plugins/table/plugin.js on lines 1941..1945
        bower_components/tinymce/plugins/table/plugin.js on lines 2157..2161

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

        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.start = function() {
            if ( !timerId ) {
                timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
            }
        };
        Severity: Major
        Found in bower_components/jquery/src/effects.js and 1 other location - About 1 hr to fix
        bower_components/jquery/dist/jquery.js on lines 7623..7627

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

        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 4 locations. Consider refactoring.
        Open

                    each('left center right'.split(' '), function(name) {
                        if (editor.formatter.matchNode(cellElm, 'align' + name)) {
                            data.align = name;
                        }
                    });
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js and 3 other locations - About 1 hr to fix
        bower_components/tinymce/plugins/table/plugin.js on lines 1746..1750
        bower_components/tinymce/plugins/table/plugin.js on lines 1941..1945
        bower_components/tinymce/plugins/table/plugin.js on lines 2157..2161

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

        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 4 locations. Consider refactoring.
        Open

                    each('top middle bottom'.split(' '), function(name) {
                        if (editor.formatter.matchNode(cellElm, 'valign' + name)) {
                            data.valign = name;
                        }
                    });
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js and 3 other locations - About 1 hr to fix
        bower_components/tinymce/plugins/table/plugin.js on lines 1746..1750
        bower_components/tinymce/plugins/table/plugin.js on lines 1935..1939
        bower_components/tinymce/plugins/table/plugin.js on lines 2157..2161

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

        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.start = function() {
            if ( !timerId ) {
                timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
            }
        };
        Severity: Major
        Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
        bower_components/jquery/src/effects.js on lines 637..641

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

        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 4 locations. Consider refactoring.
        Open

                    each('left center right'.split(' '), function(name) {
                        if (editor.formatter.matchNode(rowElm, 'align' + name)) {
                            data.align = name;
                        }
                    });
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js and 3 other locations - About 1 hr to fix
        bower_components/tinymce/plugins/table/plugin.js on lines 1746..1750
        bower_components/tinymce/plugins/table/plugin.js on lines 1935..1939
        bower_components/tinymce/plugins/table/plugin.js on lines 1941..1945

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

        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

        var isHidden = function( elem, el ) {
                // isHidden might be called from jQuery#filter function;
                // in that case, element will be second argument
                elem = el || elem;
                return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
        Severity: Major
        Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
        bower_components/jquery/src/css/var/isHidden.js on lines 7..12

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

        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

            return function( elem, el ) {
                // isHidden might be called from jQuery#filter function;
                // in that case, element will be second argument
                elem = el || elem;
                return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
        Severity: Major
        Found in bower_components/jquery/src/css/var/isHidden.js and 1 other location - About 1 hr to fix
        bower_components/jquery/dist/jquery.js on lines 4094..4099

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

        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

                    each(dom.select('thead,tbody,tfoot', table), function(part) {
                        if (part.rows.length === 0) {
                            dom.remove(part);
                        }
                    });
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js and 1 other location - About 1 hr to fix
        bower_components/tinymce/plugins/table/plugin.js on lines 284..288

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

        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

                        picker.setMaxDate = function (date) {
                            if (date == undefined) return;
                            picker.options.maxDate = pMoment(date);
                            if (picker.viewDate) update();
                        },
        bower_components/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1151..1155

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

        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

                    each(dom.select('tr', table), function(tr) {
                        if (tr.cells.length === 0) {
                            dom.remove(tr);
                        }
                    });
        Severity: Major
        Found in bower_components/tinymce/plugins/table/plugin.js and 1 other location - About 1 hr to fix
        bower_components/tinymce/plugins/table/plugin.js on lines 300..304

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

        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

                        picker.setMinDate = function (date) {
                            if (date == undefined) return;
                            picker.options.minDate = pMoment(date);
                            if (picker.viewDate) update();
                        };
        bower_components/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1145..1149

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

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

            self.renderUI = function(args) {
                var skin = settings.skin !== false ? settings.skin || 'lightgray' : false;
        
                if (skin) {
                    var skinUrl = settings.skin_url;
        Severity: Minor
        Found in public/javascripts/themes/modern/theme.js - About 1 hr to fix

          Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  setup: function() {
          
                      if ( rformElems.test( this.nodeName ) ) {
                          // IE doesn't fire change on a check/radio until blur; trigger it on click
                          // after a propertychange. Eat the blur-change in special.change.handle.
          Severity: Minor
          Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

            Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function propFilter( props, specialEasing ) {
                var index, name, easing, value, hooks;
            
                // camelCase, specialEasing and expand cssHook pass
                for ( index in props ) {
            Severity: Minor
            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

              Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      setup: function() {
              
                          if ( rformElems.test( this.nodeName ) ) {
                              // IE doesn't fire change on a check/radio until blur; trigger it on click
                              // after a propertychange. Eat the blur-change in special.change.handle.
              Severity: Minor
              Found in bower_components/jquery/src/event.js - About 1 hr to fix

                Function propFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function propFilter( props, specialEasing ) {
                    var index, name, easing, value, hooks;
                
                    // camelCase, specialEasing and expand cssHook pass
                    for ( index in props ) {
                Severity: Minor
                Found in bower_components/jquery/src/effects.js - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language