krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.Callbacks = function( options ) {

    // Convert options from String-formatted to Object-formatted if needed
    // (we check in cache first)
    options = typeof options === "string" ?
Severity: Major
Found in bower_components/jquery/dist/jquery.js - About 5 hrs to fix

    Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jQuery.Callbacks = function( options ) {
    
        // Convert options from String-formatted to Object-formatted if needed
        // (we check in cache first)
        options = typeof options === "string" ?
    Severity: Major
    Found in bower_components/jquery/src/callbacks.js - About 5 hrs to fix

      Function moveWebKitSelection has 128 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function moveWebKitSelection() {
                  function eventHandler(e) {
                      var key = e.keyCode;
      
                      function handle(upBool, sourceNode) {
      Severity: Major
      Found in bower_components/tinymce/plugins/table/plugin.js - About 5 hrs to fix

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

        function createPositionalPseudo( fn ) {
            return markFunction(function( argument ) {
                argument = +argument;
                return markFunction(function( seed, matches ) {
                    var j,
        Severity: Major
        Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 5 hrs to fix
        bower_components/jquery/dist/jquery.js on lines 1001..1017

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

        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 createLinkList(callback) {
                return function() {
                    var linkList = editor.settings.link_list;
        
                    if (typeof(linkList) == "string") {
        Severity: Major
        Found in bower_components/tinymce/plugins/link/plugin.js and 1 other location - About 5 hrs to fix
        bower_components/tinymce/plugins/image/plugin.js on lines 66..83

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

        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 createPositionalPseudo( fn ) {
            return markFunction(function( argument ) {
                argument = +argument;
                return markFunction(function( seed, matches ) {
                    var j,
        Severity: Major
        Found in bower_components/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
        bower_components/jquery/src/sizzle/dist/sizzle.js on lines 416..432

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

        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 createImageList(callback) {
                return function() {
                    var imageList = editor.settings.image_list;
        
                    if (typeof(imageList) == "string") {
        Severity: Major
        Found in bower_components/tinymce/plugins/image/plugin.js and 1 other location - About 5 hrs to fix
        bower_components/tinymce/plugins/link/plugin.js on lines 14..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 136.

        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 ( event.pageX == null && original.clientX != null ) {
                        eventDoc = event.target.ownerDocument || document;
                        doc = eventDoc.documentElement;
                        body = eventDoc.body;
        
        
        Severity: Critical
        Found in bower_components/jquery/dist/jquery.js - About 5 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                      if ( event.pageX == null && original.clientX != null ) {
                          eventDoc = event.target.ownerDocument || document;
                          doc = eventDoc.documentElement;
                          body = eventDoc.body;
          
          
          Severity: Critical
          Found in bower_components/jquery/src/event.js - About 5 hrs to fix

            Function updateHtml has 125 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function updateHtml(html, data, updateAll) {
                    var writer = new tinymce.html.Writer();
                    var sourceCount = 0, hasImage;
            
                    function setAttributes(attrs, updatedAttrs) {
            Severity: Major
            Found in bower_components/tinymce/plugins/media/plugin.js - About 5 hrs to fix

              BaseField has 38 functions (exceeds 20 allowed). Consider refactoring.
              Open

              abstract class BaseField
              {
              
                  const CONTEXT_LIST = 'list';
                  const CONTEXT_FORM = 'form';
              Severity: Minor
              Found in src/KraftHaus/Bauhaus/Field/BaseField.php - About 5 hrs to fix

                Function handleKey has 124 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function handleKey(e) {
                            var keyCode = e.keyCode, nonEditableParent, caretContainer, startElement, endElement;
                
                            function getNonEmptyTextNodeSibling(node, prev) {
                                while ((node = node[prev ? 'previousSibling' : 'nextSibling'])) {
                Severity: Major
                Found in bower_components/tinymce/plugins/noneditable/plugin.js - About 4 hrs to fix

                  Function eventHandler has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              function eventHandler(e) {
                                  var key = e.keyCode;
                  
                                  function handle(upBool, sourceNode) {
                                      var siblingDirection = upBool ? 'previousSibling' : 'nextSibling';
                  Severity: Major
                  Found in bower_components/tinymce/plugins/table/plugin.js - About 4 hrs to fix

                    Function showDialog has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function showDialog() {
                            var win, width, height, data;
                    
                            var generalFormItems = [
                                {
                    Severity: Major
                    Found in bower_components/tinymce/plugins/media/plugin.js - About 4 hrs to fix

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

                      jQuery.fn.extend({
                          prop: function( name, value ) {
                              return access( this, jQuery.prop, name, value, arguments.length > 1 );
                          },
                      
                      
                      Severity: Major
                      Found in bower_components/jquery/dist/jquery.js and 1 other location - About 4 hrs to fix
                      bower_components/jquery/src/attributes/prop.js on lines 10..25

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

                      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.fn.extend({
                          prop: function( name, value ) {
                              return access( this, jQuery.prop, name, value, arguments.length > 1 );
                          },
                      
                      
                      Severity: Major
                      Found in bower_components/jquery/src/attributes/prop.js and 1 other location - About 4 hrs to fix
                      bower_components/jquery/dist/jquery.js on lines 8153..8168

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

                      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

                      File plugin.js has 369 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /**
                       * plugin.js
                       *
                       * Copyright, Moxiecode Systems AB
                       * Released under LGPL License.
                      Severity: Minor
                      Found in bower_components/tinymce/plugins/noneditable/plugin.js - About 4 hrs to fix

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

                                    if (editor.settings.table_row_adv_tab !== false) {
                                        appendStylesToData(dom, data, rowElm);
                        
                                        editor.windowManager.open({
                                            title: "Row properties",
                        Severity: Major
                        Found in bower_components/tinymce/plugins/table/plugin.js and 1 other location - About 4 hrs to fix
                        bower_components/tinymce/plugins/table/plugin.js on lines 1825..1850

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

                        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.attributes || !assert(function( div ) {
                            div.innerHTML = "<input/>";
                            div.firstChild.setAttribute( "value", "" );
                            return div.firstChild.getAttribute( "value" ) === "";
                        }) ) {
                        Severity: Major
                        Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 4 hrs to fix
                        bower_components/jquery/dist/jquery.js on lines 2590..2600

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

                        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 (editor.settings.table_adv_tab !== false) {
                                        appendStylesToData(dom, data, tableElm);
                        
                                        editor.windowManager.open({
                                            title: "Table properties",
                        Severity: Major
                        Found in bower_components/tinymce/plugins/table/plugin.js and 1 other location - About 4 hrs to fix
                        bower_components/tinymce/plugins/table/plugin.js on lines 2219..2244

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

                        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