krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

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

jQuery.easing = {
    linear: function( p ) {
        return p;
    },
    swing: function( p ) {
Severity: Major
Found in bower_components/jquery/src/effects/Tween.js and 1 other location - About 1 hr to fix
bower_components/jquery/dist/jquery.js on lines 6986..6993

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

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.easing = {
    linear: function( p ) {
        return p;
    },
    swing: function( p ) {
Severity: Major
Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
bower_components/jquery/src/effects/Tween.js on lines 100..107

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

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 (range.endNodeIndex < node.length) {
                        // Add `after` text node (after the match)
                        after = doc.createTextNode(node.data.substring(range.endNodeIndex));
                        parentNode.insertBefore(after, node);
                    }
Severity: Major
Found in bower_components/tinymce/plugins/searchreplace/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/spellchecker/plugin.js on lines 279..283

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

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 (range.endNodeIndex < node.length) {
                        // Add "after" text node (after the match)
                        after = doc.createTextNode(node.data.substring(range.endNodeIndex));
                        parentNode.insertBefore(after, node);
                    }
Severity: Major
Found in bower_components/tinymce/plugins/spellchecker/plugin.js and 1 other location - About 1 hr to fix
bower_components/tinymce/plugins/searchreplace/plugin.js on lines 197..201

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

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

    when: function( subordinate /* , ..., subordinateN */ ) {
        var i = 0,
            resolveValues = slice.call( arguments ),
            length = resolveValues.length,

Severity: Minor
Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

    Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        when: function( subordinate /* , ..., subordinateN */ ) {
            var i = 0,
                resolveValues = slice.call( arguments ),
                length = resolveValues.length,
    
    
    Severity: Minor
    Found in bower_components/jquery/src/deferred.js - About 1 hr to fix

      Function moveToBookmark has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function moveToBookmark(bookmark) {
                  function restoreEndPoint(start) {
                      var container, offset, node;
      
                      function nodeIndex(container) {
      Severity: Minor
      Found in bower_components/tinymce/plugins/lists/plugin.js - About 1 hr to fix

        Method render has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function render()
            {
                if ($this->getDisplayField() === null) {
                    throw new \InvalidArgumentException(sprintf('Please provide a display field for the `%s` relation.', $this->getName()));
                }
        Severity: Minor
        Found in src/KraftHaus/Bauhaus/Field/BelongsToManyField.php - About 1 hr to fix

          Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function showHide( elements, show ) {
              var display, elem, hidden,
                  values = [],
                  index = 0,
                  length = elements.length;
          Severity: Minor
          Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

            Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                dispatch: function( event ) {
            
                    // Make a writable jQuery.Event from the native event object
                    event = jQuery.event.fix( event );
            
            
            Severity: Minor
            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

              Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                  var i = 0,
                      length = elems.length,
                      bulk = key == null;
              
              
              Severity: Minor
              Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                Function clone has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                        var destElements, node, clone, i, srcElements,
                            inPage = jQuery.contains( elem.ownerDocument, elem );
                
                        if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
                Severity: Minor
                Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                  Function bindSelectorChanged has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  function bindSelectorChanged() {
                                      var selection = editor.selection;
                  
                                      if (itemName == "bullist") {
                                          selection.selectorChanged('ul > li', function(state, args) {
                  Severity: Minor
                  Found in public/javascripts/themes/modern/theme.js - About 1 hr to fix

                    Function clone has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                            var destElements, node, clone, i, srcElements,
                                inPage = jQuery.contains( elem.ownerDocument, elem );
                    
                            if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
                    Severity: Minor
                    Found in bower_components/jquery/src/manipulation.js - About 1 hr to fix

                      Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function showHide( elements, show ) {
                          var display, elem, hidden,
                              values = [],
                              index = 0,
                              length = elements.length;
                      Severity: Minor
                      Found in bower_components/jquery/src/css.js - About 1 hr to fix

                        Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                            var i = 0,
                                length = elems.length,
                                bulk = key == null;
                        
                        
                        Severity: Minor
                        Found in bower_components/jquery/src/core/access.js - About 1 hr to fix

                          Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              dispatch: function( event ) {
                          
                                  // Make a writable jQuery.Event from the native event object
                                  event = jQuery.event.fix( event );
                          
                          
                          Severity: Minor
                          Found in bower_components/jquery/src/event.js - About 1 hr to fix

                            Function buildGrid has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function buildGrid() {
                                        var startY = 0;
                            
                                        grid = [];
                                        gridWidth = 0;
                            Severity: Minor
                            Found in bower_components/tinymce/plugins/table/plugin.js - About 1 hr to fix

                              Function toggleAbsolute has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function toggleAbsolute() {
                                      var le = getParentLayer(editor.selection.getNode());
                              
                                      if (!le) {
                                          le = editor.dom.getParent(editor.selection.getNode(), 'DIV,P,IMG');
                              Severity: Minor
                              Found in bower_components/tinymce/plugins/layer/plugin.js - About 1 hr to fix

                                Function bindSelectorChanged has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                function bindSelectorChanged() {
                                                    var selection = editor.selection;
                                
                                                    if (itemName == "bullist") {
                                                        selection.selectorChanged('ul > li', function(state, args) {
                                Severity: Minor
                                Found in bower_components/tinymce/themes/modern/theme.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language