krafthaus/bauhaus

View on GitHub

Showing 476 of 1,049 total issues

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

            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

              File plugin.js has 363 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/fullpage/plugin.js - About 4 hrs to fix

                Function createToolbars has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function createToolbars() {
                        var toolbars = [];
                
                        function addToolbar(items) {
                            var toolbarItems = [], buttonGroup;
                Severity: Major
                Found in public/javascripts/themes/modern/theme.js - About 4 hrs to fix

                  Function createToolbars has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    File core.js has 348 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    define([
                        "./var/deletedIds",
                        "./var/slice",
                        "./var/concat",
                        "./var/push",
                    Severity: Minor
                    Found in bower_components/jquery/src/core.js - About 4 hrs to fix

                      File plugin.js has 347 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/image/plugin.js - About 4 hrs to fix

                        File css.js has 347 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        define([
                            "./core",
                            "./var/pnum",
                            "./core/access",
                            "./css/var/rmargin",
                        Severity: Minor
                        Found in bower_components/jquery/src/css.js - About 4 hrs to fix

                          Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function defaultPrefilter( elem, props, opts ) {
                              /* jshint validthis: true */
                              var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                                  anim = this,
                                  orig = {},
                          Severity: Major
                          Found in bower_components/jquery/dist/jquery.js - About 4 hrs to fix

                            Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function defaultPrefilter( elem, props, opts ) {
                                /* jshint validthis: true */
                                var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                                    anim = this,
                                    orig = {},
                            Severity: Major
                            Found in bower_components/jquery/src/effects.js - About 4 hrs to fix

                              File plugin.js has 333 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/charmap/plugin.js - About 4 hrs to fix

                                File holder.js has 331 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*
                                
                                Holder - 1.9 - client side image placeholders
                                (c) 2012-2013 Ivan Malopinsky / http://imsky.co
                                
                                
                                Severity: Minor
                                Found in bower_components/bootstrap/docs/assets/js/holder/holder.js - About 3 hrs to fix

                                  Function init has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                  init = function () {
                                  
                                                      var icon = false, i, dDate, longDateFormat;
                                                      picker.options = $.extend({}, defaults, options);
                                                      picker.options.icons = $.extend({}, icons, picker.options.icons);

                                    Function convertFakeListsToProperLists has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                function convertFakeListsToProperLists(node) {
                                                    var currentListNode, prevListNode, lastLevel = 1;
                                    
                                                    function getText(node) {
                                                        var txt = '';
                                    Severity: Major
                                    Found in bower_components/tinymce/plugins/paste/plugin.js - About 3 hrs to fix

                                      File plugin.js has 321 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/link/plugin.js - About 3 hrs to fix

                                        Function fillDate has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                        fillDate = function () {
                                                            pMoment.lang(picker.options.language);
                                                            var year = picker.viewDate.year(),
                                                                month = picker.viewDate.month(),
                                                                startYear = picker.options.minDate.year(),
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language