krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        "CHILD": function( type, what, argument, first, last ) {
            var simple = type.slice( 0, 3 ) !== "nth",
                forward = type.slice( -4 ) !== "last",
                ofType = what === "of-type";

Severity: Major
Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

    Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            "CHILD": function( type, what, argument, first, last ) {
                var simple = type.slice( 0, 3 ) !== "nth",
                    forward = type.slice( -4 ) !== "last",
                    ofType = what === "of-type";
    
    
    Severity: Major
    Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

      Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          Deferred: function( func ) {
              var tuples = [
                      // action, add listener, listener list, final state
                      [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                      [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
      Severity: Major
      Found in bower_components/jquery/src/deferred.js - About 2 hrs to fix

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

        var
            // Document location
            ajaxLocParts,
            ajaxLocation,
        
        
        Severity: Major
        Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
        bower_components/jquery/src/ajax.js on lines 12..45

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

        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
            // Document location
            ajaxLocParts,
            ajaxLocation,
        
        
        Severity: Major
        Found in bower_components/jquery/src/ajax.js and 1 other location - About 2 hrs to fix
        bower_components/jquery/dist/jquery.js on lines 8545..8578

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

        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(options.images instanceof window.NodeList){
                imageNodes = options.images;
            }
            else if(options.images instanceof window.Node){
                imageNodes = [options.images];
        Severity: Major
        Found in bower_components/bootstrap/docs/assets/js/holder/holder.js and 1 other location - About 2 hrs to fix
        bower_components/bootstrap/docs/assets/js/holder/holder.js on lines 326..334

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

        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(options.elements instanceof window.NodeList){
                bgnodes = options.bgnodes;
            }
            else if(options.bgnodes instanceof window.Node){
                bgnodes = [options.bgnodes];
        Severity: Major
        Found in bower_components/bootstrap/docs/assets/js/holder/holder.js and 1 other location - About 2 hrs to fix
        bower_components/bootstrap/docs/assets/js/holder/holder.js on lines 316..324

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

        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

            editor.addButton('numlist', {
                type: 'splitbutton',
                tooltip: 'Numbered list',
                menu: olMenuItems,
                onshow: updateSelection,
        Severity: Major
        Found in bower_components/tinymce/plugins/advlist/plugin.js and 1 other location - About 2 hrs to fix
        bower_components/tinymce/plugins/advlist/plugin.js on lines 83..94

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

        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

            editor.addButton('bullist', {
                type: 'splitbutton',
                tooltip: 'Bullet list',
                menu: ulMenuItems,
                onshow: updateSelection,
        Severity: Major
        Found in bower_components/tinymce/plugins/advlist/plugin.js and 1 other location - About 2 hrs to fix
        bower_components/tinymce/plugins/advlist/plugin.js on lines 70..81

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

        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 ( forward && useCache ) {
                                    // Seek `elem` from a previously-cached index
                                    outerCache = parent[ expando ] || (parent[ expando ] = {});
                                    cache = outerCache[ type ] || [];
                                    nodeIndex = cache[0] === dirruns && cache[1];
        Severity: Critical
        Found in bower_components/jquery/dist/jquery.js - About 2 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                                  if ( forward && useCache ) {
                                      // Seek `elem` from a previously-cached index
                                      outerCache = parent[ expando ] || (parent[ expando ] = {});
                                      cache = outerCache[ type ] || [];
                                      nodeIndex = cache[0] === dirruns && cache[1];
          Severity: Critical
          Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 2 hrs to fix

            Function outdent has 58 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function outdent(li) {
                        var ul = li.parentNode, ulParent = ul.parentNode, newBlock;
            
                        function removeEmptyLi(li) {
                            if (dom.isEmpty(li)) {
            Severity: Major
            Found in bower_components/tinymce/plugins/lists/plugin.js - About 2 hrs to fix

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

              jQuery.ajaxPrefilter( "script", function( s ) {
                  if ( s.cache === undefined ) {
                      s.cache = false;
                  }
                  if ( s.crossDomain ) {
              Severity: Major
              Found in bower_components/jquery/src/ajax/script.js and 1 other location - About 2 hrs to fix
              bower_components/jquery/dist/jquery.js on lines 9745..9753

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

              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.ajaxPrefilter( "script", function( s ) {
                  if ( s.cache === undefined ) {
                      s.cache = false;
                  }
                  if ( s.crossDomain ) {
              Severity: Major
              Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
              bower_components/jquery/src/ajax/script.js on lines 23..31

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

              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 addZeros(value, len) {
                          value = "" + value;
              
                          if (value.length < len) {
                              for (var i = 0; i < (len - value.length); i++) {
              Severity: Major
              Found in bower_components/tinymce/plugins/insertdatetime/plugin.js and 1 other location - About 2 hrs to fix
              bower_components/tinymce/plugins/template/plugin.js on lines 136..146

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

              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 addZeros(value, len) {
                          value = "" + value;
              
                          if (value.length < len) {
                              for (var i = 0; i < (len - value.length); i++) {
              Severity: Major
              Found in bower_components/tinymce/plugins/template/plugin.js and 1 other location - About 2 hrs to fix
              bower_components/tinymce/plugins/insertdatetime/plugin.js on lines 21..31

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

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

                      function stepThroughMatches(node, matches, replaceFn) {
                          var startNode, endNode, startNodeIndex,
                              endNodeIndex, innerNodes = [], atIndex = 0, curNode = node,
                              matchLocation = matches.shift(), matchIndex = 0;
              
              
              Severity: Major
              Found in bower_components/tinymce/plugins/searchreplace/plugin.js - About 2 hrs to fix

                Function moveSelection has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function moveSelection() {
                            var nonEditableStart, nonEditableEnd, isCollapsed, rng, element;
                
                            // Checks if there is any contents to the left/right side of caret returns the noneditable element or
                            // any editable element if it finds one inside
                Severity: Major
                Found in bower_components/tinymce/plugins/noneditable/plugin.js - About 2 hrs to fix

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

                  jQuery.noConflict = function( deep ) {
                      if ( window.$ === jQuery ) {
                          window.$ = _$;
                      }
                  
                  
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
                  bower_components/jquery/src/exports/global.js on lines 13..23

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

                  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.noConflict = function( deep ) {
                      if ( window.$ === jQuery ) {
                          window.$ = _$;
                      }
                  
                  
                  Severity: Major
                  Found in bower_components/jquery/src/exports/global.js and 1 other location - About 2 hrs to fix
                  bower_components/jquery/dist/jquery.js on lines 10284..10294

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

                  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

                  Severity
                  Category
                  Status
                  Source
                  Language