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 manipulationTarget( elem, content ) {
    return jQuery.nodeName( elem, "table" ) &&
        jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?

        elem.getElementsByTagName("tbody")[0] ||
Severity: Major
Found in bower_components/jquery/src/manipulation.js and 1 other location - About 3 hrs to fix
bower_components/jquery/dist/jquery.js on lines 5355..5362

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

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 ( !getSetInput || !getSetAttribute ) {
    jQuery.attrHooks.value = {
        set: function( elem, value, name ) {
            if ( jQuery.nodeName( elem, "input" ) ) {
                // Does not return so that setAttribute is also used
Severity: Major
Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
bower_components/jquery/src/attributes/attr.js on lines 175..187

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

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 ( !getSetInput || !getSetAttribute ) {
    jQuery.attrHooks.value = {
        set: function( elem, value, name ) {
            if ( jQuery.nodeName( elem, "input" ) ) {
                // Does not return so that setAttribute is also used
Severity: Major
Found in bower_components/jquery/src/attributes/attr.js and 1 other location - About 3 hrs to fix
bower_components/jquery/dist/jquery.js on lines 8051..8063

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

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 manipulationTarget( elem, content ) {
    return jQuery.nodeName( elem, "table" ) &&
        jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?

        elem.getElementsByTagName("tbody")[0] ||
Severity: Major
Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
bower_components/jquery/src/manipulation.js on lines 101..108

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

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

        function addToolbar(items) {
            var toolbarItems = [], buttonGroup;

            if (!items) {
                return;
Severity: Major
Found in public/javascripts/themes/modern/theme.js - About 3 hrs to fix

    Function addToolbar has 81 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function addToolbar(items) {
                var toolbarItems = [], buttonGroup;
    
                if (!items) {
                    return;
    Severity: Major
    Found in bower_components/tinymce/themes/modern/theme.js - About 3 hrs to fix

      Function setContent has 81 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function setContent(evt) {
              var startPos, endPos, content = evt.content, headerFragment, styles = '', dom = editor.dom, elm;
      
              if (evt.selection) {
                  return;
      Severity: Major
      Found in bower_components/tinymce/plugins/fullpage/plugin.js - About 3 hrs to fix

        Function renderInlineUI has 80 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function renderInlineUI(args) {
                var panel, inlineToolbarContainer;
        
                if (settings.fixed_toolbar_container) {
                    inlineToolbarContainer = DOM.select(settings.fixed_toolbar_container)[0];
        Severity: Major
        Found in public/javascripts/themes/modern/theme.js - About 3 hrs to fix

          Function renderInlineUI has 80 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function renderInlineUI(args) {
                  var panel, inlineToolbarContainer;
          
                  if (settings.fixed_toolbar_container) {
                      inlineToolbarContainer = DOM.select(settings.fixed_toolbar_container)[0];
          Severity: Major
          Found in bower_components/tinymce/themes/modern/theme.js - About 3 hrs to fix

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

            function assert( fn ) {
                var div = document.createElement("div");
            
                try {
                    return !!fn( div );
            Severity: Major
            Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
            bower_components/jquery/src/sizzle/dist/sizzle.js on lines 330..345

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

            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 assert( fn ) {
                var div = document.createElement("div");
            
                try {
                    return !!fn( div );
            Severity: Major
            Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 3 hrs to fix
            bower_components/jquery/dist/jquery.js on lines 915..930

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

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

                function showDialog(templateList) {
                    var win, values = [], templateHtml;
            
                    if (!templateList || templateList.length === 0) {
                        editor.windowManager.alert('No templates defined');
            Severity: Major
            Found in bower_components/tinymce/plugins/template/plugin.js - About 3 hrs to fix

              Function applyList has 79 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function applyList(listName) {
                          var rng = selection.getRng(true), bookmark = createBookmark(rng), listItemName = 'LI';
              
                          listName = listName.toUpperCase();
              
              
              Severity: Major
              Found in bower_components/tinymce/plugins/lists/plugin.js - About 3 hrs to fix

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

                if ( !support.optSelected ) {
                    jQuery.propHooks.selected = {
                        get: function( elem ) {
                            var parent = elem.parentNode;
                
                
                Severity: Major
                Found in bower_components/jquery/src/attributes/prop.js and 1 other location - About 3 hrs to fix
                bower_components/jquery/dist/jquery.js on lines 8239..8255

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

                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.optSelected ) {
                    jQuery.propHooks.selected = {
                        get: function( elem ) {
                            var parent = elem.parentNode;
                
                
                Severity: Major
                Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
                bower_components/jquery/src/attributes/prop.js on lines 96..112

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

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

                    function createMenuButtons() {
                        var name, menuButtons = [];
                
                        function createMenuItem(name) {
                            var menuItem;
                Severity: Major
                Found in public/javascripts/themes/modern/theme.js - About 3 hrs to fix

                  Function createMenuButtons has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function createMenuButtons() {
                          var name, menuButtons = [];
                  
                          function createMenuItem(name) {
                              var menuItem;
                  Severity: Major
                  Found in bower_components/tinymce/themes/modern/theme.js - About 3 hrs to fix

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

                    function addGetHookIf( conditionFn, hookFn ) {
                        // Define the hook, we'll check on the first run if it's really needed.
                        return {
                            get: function() {
                                var condition = conditionFn();
                    Severity: Major
                    Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
                    bower_components/jquery/src/css/addGetHookIf.js on lines 3..28

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

                    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

                    function addGetHookIf( conditionFn, hookFn ) {
                        // Define the hook, we'll check on the first run if it's really needed.
                        return {
                            get: function() {
                                var condition = conditionFn();
                    Severity: Major
                    Found in bower_components/jquery/src/css/addGetHookIf.js and 1 other location - About 3 hrs to fix
                    bower_components/jquery/dist/jquery.js on lines 6221..6246

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

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

                    function Sizzle( selector, context, results, seed ) {
                        var match, elem, m, nodeType,
                            // QSA vars
                            i, groups, old, nid, newContext, newSelector;
                    
                    
                    Severity: Major
                    Found in bower_components/jquery/dist/jquery.js - About 3 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language