krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

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

                values: buildListItems(
                    linkList,
                    function(item) {
                        item.value = editor.convertURL(item.value || item.url, 'href');
                    },
Severity: Major
Found in bower_components/tinymce/plugins/link/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/image/plugin.js on lines 248..254

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

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

Consider simplifying this complex logical expression.
Open

            if ( start && start[ 3 ] !== unit ) {
                // Trust units reported by jQuery.css
                unit = unit || start[ 3 ];

                // Make sure we update the tween properties later on
Severity: Critical
Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                            } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                diff = cache[1];
    
                            // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                            } else {
    Severity: Critical
    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                              } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                  diff = cache[1];
      
                              // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                              } else {
      Severity: Critical
      Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if ( start && start[ 3 ] !== unit ) {
                        // Trust units reported by jQuery.css
                        unit = unit || start[ 3 ];
        
                        // Make sure we update the tween properties later on
        Severity: Critical
        Found in bower_components/jquery/src/effects.js - About 1 hr to fix

          Function defaultSpellcheckCallback has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function defaultSpellcheckCallback(method, text, doneCallback, errorCallback) {
                      var data = {method: method}, postData = '';
          
                      if (method == "spellcheck") {
                          data.text = text;
          Severity: Minor
          Found in bower_components/tinymce/plugins/spellchecker/plugin.js - About 1 hr to fix

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

            jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
                jQuery.fn[ type ] = function( fn ) {
                    return this.on( type, fn );
                };
            });
            Severity: Major
            Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
            bower_components/jquery/src/ajax.js on lines 800..804

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

            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.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
                jQuery.fn[ type ] = function( fn ) {
                    return this.on( type, fn );
                };
            });
            Severity: Major
            Found in bower_components/jquery/src/ajax.js and 1 other location - About 1 hr to fix
            bower_components/jquery/dist/jquery.js on lines 9333..9337

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

            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

                                selectMinute: function (e) {
                                    picker.date.minutes(parseInt($(e.target).text(), 10));
                                    actions.showPicker.call(picker);
                                },
            bower_components/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 687..690

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

            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

                                selectSecond: function (e) {
                                    picker.date.seconds(parseInt($(e.target).text(), 10));
                                    actions.showPicker.call(picker);
                                }
            bower_components/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 682..685

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

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

                data: function( key, value ) {
                    var i, name, data,
                        elem = this[0],
                        attrs = elem && elem.attributes;
            
            
            Severity: Minor
            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

              Function fixCloneNodeIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function fixCloneNodeIssues( src, dest ) {
                  var nodeName, e, data;
              
                  // We do not need to do anything for non-Elements
                  if ( dest.nodeType !== 1 ) {
              Severity: Minor
              Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                Function addClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    addClass: function( value ) {
                        var classes, elem, cur, clazz, j, finalValue,
                            i = 0,
                            len = this.length,
                            proceed = typeof value === "string" && value;
                Severity: Minor
                Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                  Function removeClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      removeClass: function( value ) {
                          var classes, elem, cur, clazz, j, finalValue,
                              i = 0,
                              len = this.length,
                              proceed = arguments.length === 0 || typeof value === "string" && value;
                  Severity: Minor
                  Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                    Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.fn.load = function( url, params, callback ) {
                        if ( typeof url !== "string" && _load ) {
                            return _load.apply( this, arguments );
                        }
                    
                    
                    Severity: Minor
                    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                      Function fixCloneNodeIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function fixCloneNodeIssues( src, dest ) {
                          var nodeName, e, data;
                      
                          // We do not need to do anything for non-Elements
                          if ( dest.nodeType !== 1 ) {
                      Severity: Minor
                      Found in bower_components/jquery/src/manipulation.js - About 1 hr to fix

                        Function find has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function find(direction) {
                                    el = DOM.select(':input:enabled,*[tabindex]:not(iframe)');
                        
                                    function canSelectRecursive(e) {
                                        return e.nodeName === "BODY" || (e.type != 'hidden' &&
                        Severity: Minor
                        Found in bower_components/tinymce/plugins/tabfocus/plugin.js - About 1 hr to fix

                          Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          jQuery.fn.load = function( url, params, callback ) {
                              if ( typeof url !== "string" && _load ) {
                                  return _load.apply( this, arguments );
                              }
                          
                          
                          Severity: Minor
                          Found in bower_components/jquery/src/ajax/load.js - About 1 hr to fix

                            Function addClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                addClass: function( value ) {
                                    var classes, elem, cur, clazz, j, finalValue,
                                        i = 0,
                                        len = this.length,
                                        proceed = typeof value === "string" && value;
                            Severity: Minor
                            Found in bower_components/jquery/src/attributes/classes.js - About 1 hr to fix

                              Function data has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  data: function( key, value ) {
                                      var i, name, data,
                                          elem = this[0],
                                          attrs = elem && elem.attributes;
                              
                              
                              Severity: Minor
                              Found in bower_components/jquery/src/data.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language