krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function spellcheck has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function spellcheck() {
            if (started) {
                finish();
                return;
            } else {
Severity: Minor
Found in bower_components/tinymce/plugins/spellchecker/plugin.js - About 1 hr to fix

    Function createStyleForm has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function createStyleForm(dom) {
                return {
                    title: 'Advanced',
                    type: 'form',
                    defaults: {
    Severity: Minor
    Found in bower_components/tinymce/plugins/table/plugin.js - About 1 hr to fix

      Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          val: function( value ) {
              var hooks, ret, isFunction,
                  elem = this[0];
      
              if ( !arguments.length ) {
      Severity: Minor
      Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

        Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            stop: function( type, clearQueue, gotoEnd ) {
                var stopQueue = function( hooks ) {
                    var stop = hooks.stop;
                    delete hooks.stop;
                    stop( gotoEnd );
        Severity: Minor
        Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

          Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          jQuery.extend = jQuery.fn.extend = function() {
              var src, copyIsArray, copy, name, options, clone,
                  target = arguments[0] || {},
                  i = 1,
                  length = arguments.length,
          Severity: Minor
          Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

            Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                    var type, origFn;
            
                    // Types can be a map of types/handlers
                    if ( typeof types === "object" ) {
            Severity: Minor
            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

              Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              jQuery.extend = jQuery.fn.extend = function() {
                  var src, copyIsArray, copy, name, options, clone,
                      target = arguments[0] || {},
                      i = 1,
                      length = arguments.length,
              Severity: Minor
              Found in bower_components/jquery/src/core.js - About 1 hr to fix

                Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    stop: function( type, clearQueue, gotoEnd ) {
                        var stopQueue = function( hooks ) {
                            var stop = hooks.stop;
                            delete hooks.stop;
                            stop( gotoEnd );
                Severity: Minor
                Found in bower_components/jquery/src/effects.js - About 1 hr to fix

                  Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      val: function( value ) {
                          var hooks, ret, isFunction,
                              elem = this[0];
                  
                          if ( !arguments.length ) {
                  Severity: Minor
                  Found in bower_components/jquery/src/attributes/val.js - About 1 hr to fix

                    Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                            var type, origFn;
                    
                            // Types can be a map of types/handlers
                            if ( typeof types === "object" ) {
                    Severity: Minor
                    Found in bower_components/jquery/src/event.js - About 1 hr to fix

                      Function onSubmitTableForm has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  function onSubmitTableForm() {
                                      var captionElm;
                      
                                      updateStyle(dom, this);
                                      data = Tools.extend(data, this.toJSON());
                      Severity: Minor
                      Found in bower_components/tinymce/plugins/table/plugin.js - About 1 hr to fix

                        Function removeWebKitStyles has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function removeWebKitStyles(content) {
                                    // Passthrough all styles from Word and let the WordFilter handle that junk
                                    if (WordFilter.isWordContent(content)) {
                                        return content;
                                    }
                        Severity: Minor
                        Found in bower_components/tinymce/plugins/paste/plugin.js - About 1 hr to fix

                          Method update has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function update($input)
                              {
                                  $mapper = $this->getMapper();
                                  $admin  = $mapper->getAdmin();
                          
                          
                          Severity: Minor
                          Found in src/KraftHaus/Bauhaus/Builder/FormBuilder.php - About 1 hr to fix

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

                            function createButtonPseudo( type ) {
                                return function( elem ) {
                                    var name = elem.nodeName.toLowerCase();
                                    return (name === "input" || name === "button") && elem.type === type;
                                };
                            Severity: Major
                            Found in bower_components/jquery/src/sizzle/dist/sizzle.js and 1 other location - About 1 hr to fix
                            bower_components/jquery/dist/jquery.js on lines 990..995

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

                            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 createButtonPseudo( type ) {
                                return function( elem ) {
                                    var name = elem.nodeName.toLowerCase();
                                    return (name === "input" || name === "button") && elem.type === type;
                                };
                            Severity: Major
                            Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
                            bower_components/jquery/src/sizzle/dist/sizzle.js on lines 405..410

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

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

                            function addCombinator( matcher, combinator, base ) {
                                var dir = combinator.dir,
                                    checkNonElements = base && dir === "parentNode",
                                    doneName = done++;
                            
                            
                            Severity: Minor
                            Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                              Function getTemplate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          tpGlobal.getTemplate = function () {
                                              return (
                                                  '<div class="timepicker-picker">' +
                                                      '<table class="table-condensed">' +
                                                      '<tr>' +

                                Function addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function addCombinator( matcher, combinator, base ) {
                                    var dir = combinator.dir,
                                        checkNonElements = base && dir === "parentNode",
                                        doneName = done++;
                                
                                
                                Severity: Minor
                                Found in bower_components/jquery/src/sizzle/dist/sizzle.js - About 1 hr to fix

                                  Function cloneCell has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function cloneCell(cell) {
                                              var formatNode, cloneFormats = {};
                                  
                                              if (editor.settings.table_clone_elements !== false) {
                                                  cloneFormats = Tools.makeMap(
                                  Severity: Minor
                                  Found in bower_components/tinymce/plugins/table/plugin.js - About 1 hr to fix

                                    Function innerText has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function innerText(html) {
                                            var schema = new Schema(), domParser = new DomParser({}, schema), text = '';
                                            var shortEndedElements = schema.getShortEndedElements();
                                            var ignoreElements = Tools.makeMap('script noscript style textarea video audio iframe object', ' ');
                                            var blockElements = schema.getBlockElements();
                                    Severity: Minor
                                    Found in bower_components/tinymce/plugins/paste/plugin.js - About 1 hr to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language