krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

Function toggleVisualChars has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function toggleVisualChars(addBookmark) {
        var node, nodeList, i, body = editor.getBody(), nodeValue, selection = editor.selection, div, bookmark;

        state = !state;
        self.state = state;
Severity: Minor
Found in bower_components/tinymce/plugins/visualchars/plugin.js - About 1 hr to fix

    Function convertParagraphToLi has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    function convertParagraphToLi(paragraphNode, listName, start) {
                        var level = paragraphNode._listLevel || lastLevel;
    
                        // Handle list nesting
                        if (level != lastLevel) {
    Severity: Minor
    Found in bower_components/tinymce/plugins/paste/plugin.js - About 1 hr to fix

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

      function createInputPseudo( type ) {
          return function( elem ) {
              var name = elem.nodeName.toLowerCase();
              return name === "input" && 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 979..984

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

      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._evalUrl = function( url ) {
          return jQuery.ajax({
              url: url,
              type: "GET",
              dataType: "script",
      Severity: Major
      Found in bower_components/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
      bower_components/jquery/src/manipulation/_evalUrl.js on lines 5..14

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

      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

      function createInputPseudo( type ) {
          return function( elem ) {
              var name = elem.nodeName.toLowerCase();
              return name === "input" && 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 394..399

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

      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._evalUrl = function( url ) {
          return jQuery.ajax({
              url: url,
              type: "GET",
              dataType: "script",
      Severity: Major
      Found in bower_components/jquery/src/manipulation/_evalUrl.js and 1 other location - About 1 hr to fix
      bower_components/jquery/dist/jquery.js on lines 9340..9349

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

      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('forecolor', {
              type: 'colorbutton',
              tooltip: 'Text color',
              format: 'forecolor',
              panel: {
      Severity: Major
      Found in bower_components/tinymce/plugins/textcolor/plugin.js and 1 other location - About 1 hr to fix
      bower_components/tinymce/plugins/textcolor/plugin.js on lines 260..271

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

      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('backcolor', {
              type: 'colorbutton',
              tooltip: 'Background color',
              format: 'hilitecolor',
              panel: {
      Severity: Major
      Found in bower_components/tinymce/plugins/textcolor/plugin.js and 1 other location - About 1 hr to fix
      bower_components/tinymce/plugins/textcolor/plugin.js on lines 247..258

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

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

          html: function( value ) {
              return access( this, function( value ) {
                  var elem = this[ 0 ] || {},
                      i = 0,
                      l = this.length;
      Severity: Minor
      Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

        Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            toggleClass: function( value, stateVal ) {
                var type = typeof value;
        
                if ( typeof stateVal === "boolean" && type === "string" ) {
                    return stateVal ? this.addClass( value ) : this.removeClass( value );
        Severity: Minor
        Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

          Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              html: function( value ) {
                  return access( this, function( value ) {
                      var elem = this[ 0 ] || {},
                          i = 0,
                          l = this.length;
          Severity: Minor
          Found in bower_components/jquery/src/manipulation.js - About 1 hr to fix

            Function toggleClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                toggleClass: function( value, stateVal ) {
                    var type = typeof value;
            
                    if ( typeof stateVal === "boolean" && type === "string" ) {
                        return stateVal ? this.addClass( value ) : this.removeClass( value );
            Severity: Minor
            Found in bower_components/jquery/src/attributes/classes.js - About 1 hr to fix

              Function render has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function render(mode, el, holder, src) {
                  var dimensions = holder.dimensions,
                      theme = holder.theme,
                      text = holder.text ? decodeURIComponent(holder.text) : holder.text;
                  var dimensions_caption = dimensions.width + "x" + dimensions.height;
              Severity: Minor
              Found in bower_components/bootstrap/docs/assets/js/holder/holder.js - About 1 hr to fix

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

                    public function render()
                    {
                        switch ($this->getContext()) {
                            case BaseField::CONTEXT_LIST:
                                $values = [];
                Severity: Minor
                Found in src/KraftHaus/Bauhaus/Field/HasManyField.php - About 1 hr to fix

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

                  function multipleContexts( selector, contexts, results ) {
                      var i = 0,
                          len = contexts.length;
                      for ( ; i < len; i++ ) {
                          Sizzle( selector, contexts[i], results );
                  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 2169..2176

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

                  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

                  function multipleContexts( selector, contexts, results ) {
                      var i = 0,
                          len = contexts.length;
                      for ( ; i < len; i++ ) {
                          Sizzle( selector, contexts[i], results );
                  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 1584..1591

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

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

                      fix: function( event ) {
                          if ( event[ jQuery.expando ] ) {
                              return event;
                          }
                  
                  
                  Severity: Minor
                  Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                    Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        finish: function( type ) {
                            if ( type !== false ) {
                                type = type || "fx";
                            }
                            return this.each(function() {
                    Severity: Minor
                    Found in bower_components/jquery/dist/jquery.js - About 1 hr to fix

                      Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          fix: function( event ) {
                              if ( event[ jQuery.expando ] ) {
                                  return event;
                              }
                      
                      
                      Severity: Minor
                      Found in bower_components/jquery/src/event.js - About 1 hr to fix

                        Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            finish: function( type ) {
                                if ( type !== false ) {
                                    type = type || "fx";
                                }
                                return this.each(function() {
                        Severity: Minor
                        Found in bower_components/jquery/src/effects.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language