krafthaus/bauhaus

View on GitHub

Showing 1,049 of 1,049 total issues

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(),

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

            function showDialog() {
                var last = {};
    
                function updateButtonStates() {
                    win.statusbar.find('#next').disabled(!findSpansByIndex(currentIndex + 1).length);
    Severity: Major
    Found in bower_components/tinymce/plugins/searchreplace/plugin.js - About 3 hrs to fix

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

                              if (cell.real) {
                                  colSpan = cell.colspan - 1;
                                  rowSpan = cell.rowspan - 1;
      
                                  if (colSpan) {
      Severity: Major
      Found in bower_components/tinymce/plugins/table/plugin.js and 1 other location - About 3 hrs to fix
      bower_components/tinymce/plugins/table/plugin.js on lines 792..807

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

      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 (cell.real) {
                                  colSpan = cell.colspan - 1;
                                  rowSpan = cell.rowspan - 1;
      
                                  if (colSpan) {
      Severity: Major
      Found in bower_components/tinymce/plugins/table/plugin.js and 1 other location - About 3 hrs to fix
      bower_components/tinymce/plugins/table/plugin.js on lines 858..873

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

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

          trigger: function( event, data, elem, onlyHandlers ) {
              var handle, ontype, cur,
                  bubbleType, special, tmp, i,
                  eventPath = [ elem || document ],
                  type = hasOwn.call( event, "type" ) ? event.type : event,
      Severity: Major
      Found in bower_components/jquery/dist/jquery.js - About 3 hrs to fix

        Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            trigger: function( event, data, elem, onlyHandlers ) {
                var handle, ontype, cur,
                    bubbleType, special, tmp, i,
                    eventPath = [ elem || document ],
                    type = hasOwn.call( event, "type" ) ? event.type : event,
        Severity: Major
        Found in bower_components/jquery/src/event.js - About 3 hrs to fix

          Function parseCurrentLine has 89 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function parseCurrentLine(editor, end_offset, delimiter) {
                  var rng, end, start, endContainer, bookmark, text, matches, prev, len, rngText;
          
                  function scopeIndex(container, index) {
                      if (index < 0) {
          Severity: Major
          Found in bower_components/tinymce/plugins/autolink/plugin.js - About 3 hrs to fix

            Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function Animation( elem, properties, options ) {
                var result,
                    stopped,
                    index = 0,
                    length = animationPrefilters.length,
            Severity: Major
            Found in bower_components/jquery/dist/jquery.js - About 3 hrs to fix

              Function click has 84 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                              click = function (e) {
                                  e.stopPropagation();
                                  e.preventDefault();
                                  picker.unset = false;
                                  var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = pMoment(picker.date);

                Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Animation( elem, properties, options ) {
                    var result,
                        stopped,
                        index = 0,
                        length = animationPrefilters.length,
                Severity: Major
                Found in bower_components/jquery/src/effects.js - About 3 hrs to fix

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

                  (function() {
                      var div = document.createElement( "div" );
                  
                      // Execute the test only if not already executed in another module.
                      if (support.deleteExpando == null) {
                  Severity: Major
                  Found in bower_components/jquery/src/data/support.js and 1 other location - About 3 hrs to fix
                  bower_components/jquery/dist/jquery.js on lines 3595..3611

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

                  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() {
                      var div = document.createElement( "div" );
                  
                      // Execute the test only if not already executed in another module.
                      if (support.deleteExpando == null) {
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
                  bower_components/jquery/src/data/support.js on lines 5..21

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

                  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 createTween( value, prop, animation ) {
                      var tween,
                          collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
                          index = 0,
                          length = collection.length;
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
                  bower_components/jquery/src/effects.js on lines 103..115

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

                  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 (picker.use24hours) {
                                          current = 0;
                                          for (i = 0; i < 6; i += 1) {
                                              html += '<tr>';
                                              for (j = 0; j < 4; j += 1) {
                  bower_components/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 473..483

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

                  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

                                      else {
                                          current = 1;
                                          for (i = 0; i < 3; i += 1) {
                                              html += '<tr>';
                                              for (j = 0; j < 4; j += 1) {
                  bower_components/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 462..472

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

                  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

                  jQuery.expr.filters.hidden = function( elem ) {
                      // Support: Opera <= 12.12
                      // Opera reports offsetWidths and offsetHeights less than zero on some elements
                      return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
                          (!support.reliableHiddenOffsets() &&
                  Severity: Major
                  Found in bower_components/jquery/dist/jquery.js and 1 other location - About 3 hrs to fix
                  bower_components/jquery/src/css/hiddenVisibleSelectors.js on lines 8..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 101.

                  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

                  jQuery.expr.filters.hidden = function( elem ) {
                      // Support: Opera <= 12.12
                      // Opera reports offsetWidths and offsetHeights less than zero on some elements
                      return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
                          (!support.reliableHiddenOffsets() &&
                  Severity: Major
                  Found in bower_components/jquery/src/css/hiddenVisibleSelectors.js and 1 other location - About 3 hrs to fix
                  bower_components/jquery/dist/jquery.js on lines 9420..9426

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

                  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 createTween( value, prop, animation ) {
                      var tween,
                          collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
                          index = 0,
                          length = collection.length;
                  Severity: Major
                  Found in bower_components/jquery/src/effects.js and 1 other location - About 3 hrs to fix
                  bower_components/jquery/dist/jquery.js on lines 7089..7101

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

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

                      function colorPickerCallback(callback, value) {
                          function setColor(value) {
                              var color = new tinymce.util.Color(value), rgb = color.toRgb();
                  
                              win.fromJSON({
                  Severity: Major
                  Found in bower_components/tinymce/plugins/colorpicker/plugin.js - About 3 hrs to fix

                    Function dataToHtml has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function dataToHtml(data) {
                            var html = '';
                    
                            if (!data.source1) {
                                tinymce.extend(data, htmlToData(data.embed));
                    Severity: Major
                    Found in bower_components/tinymce/plugins/media/plugin.js - About 3 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language