bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function setMask has 115 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            function setMask(options) {

                var isValidValue = function (mask, value) {
                    var reg = mask
                        .replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g, '\\$1')
Severity: Major
Found in core/static/vendor/datetimepicker/build/jquery.datetimepicker.full.js - About 4 hrs to fix

    Function setMask has 115 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function setMask(options) {
    
                    var isValidValue = function (mask, value) {
                        var reg = mask
                            .replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g, '\\$1')
    Severity: Major
    Found in core/static/vendor/datetimepicker/jquery.datetimepicker.js - About 4 hrs to fix

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

      ;(function($){
          $.fn.datepicker.dates['sr'] = {
              days: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"],
              daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб"],
              daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bs.js on lines 4..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr-latin.js on lines 5..16

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

      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 5 locations. Consider refactoring.
      Open

      export function weekdaysRegex (isStrict) {
          if (this._weekdaysParseExact) {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                  computeWeekdaysParse.call(this);
              }
      Severity: Major
      Found in core/static/vendor/moment/src/lib/units/day-of-week.js and 4 other locations - About 4 hrs to fix
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 284..301
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 304..321
      core/static/vendor/moment/src/lib/units/month.js on lines 210..227
      core/static/vendor/moment/src/lib/units/month.js on lines 230..247

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

      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 5 locations. Consider refactoring.
      Open

      export function monthsShortRegex (isStrict) {
          if (this._monthsParseExact) {
              if (!hasOwnProp(this, '_monthsRegex')) {
                  computeMonthsParse.call(this);
              }
      Severity: Major
      Found in core/static/vendor/moment/src/lib/units/month.js and 4 other locations - About 4 hrs to fix
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 264..281
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 284..301
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 304..321
      core/static/vendor/moment/src/lib/units/month.js on lines 230..247

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

      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 5 locations. Consider refactoring.
      Open

      ;(function($){
          $.fn.datepicker.dates['rs'] = {
              days: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"],
              daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб"],
              daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bs.js on lines 4..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr.js on lines 5..16

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

      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 5 locations. Consider refactoring.
      Open

      export function weekdaysMinRegex (isStrict) {
          if (this._weekdaysParseExact) {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                  computeWeekdaysParse.call(this);
              }
      Severity: Major
      Found in core/static/vendor/moment/src/lib/units/day-of-week.js and 4 other locations - About 4 hrs to fix
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 264..281
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 284..301
      core/static/vendor/moment/src/lib/units/month.js on lines 210..227
      core/static/vendor/moment/src/lib/units/month.js on lines 230..247

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

      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 5 locations. Consider refactoring.
      Open

      ;(function($){
          $.fn.datepicker.dates['rs-latin'] = {
              days: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"],
              daysShort: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
              daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bs.js on lines 4..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr.js on lines 5..16

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

      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 5 locations. Consider refactoring.
      Open

      export function weekdaysShortRegex (isStrict) {
          if (this._weekdaysParseExact) {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                  computeWeekdaysParse.call(this);
              }
      Severity: Major
      Found in core/static/vendor/moment/src/lib/units/day-of-week.js and 4 other locations - About 4 hrs to fix
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 264..281
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 304..321
      core/static/vendor/moment/src/lib/units/month.js on lines 210..227
      core/static/vendor/moment/src/lib/units/month.js on lines 230..247

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

      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 5 locations. Consider refactoring.
      Open

      ;(function($){
          $.fn.datepicker.dates['sr-latin'] = {
              days: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"],
              daysShort: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
              daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bs.js on lines 4..15
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr.js on lines 5..16

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

      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 5 locations. Consider refactoring.
      Open

      ;(function($){
          $.fn.datepicker.dates['bs'] = {
              days: ["Nedjelja","Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"],
              daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
              daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su"],
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.rs.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr-latin.js on lines 5..16
      core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sr.js on lines 5..16

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

      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 5 locations. Consider refactoring.
      Open

      export function monthsRegex (isStrict) {
          if (this._monthsParseExact) {
              if (!hasOwnProp(this, '_monthsRegex')) {
                  computeMonthsParse.call(this);
              }
      Severity: Major
      Found in core/static/vendor/moment/src/lib/units/month.js and 4 other locations - About 4 hrs to fix
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 264..281
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 284..301
      core/static/vendor/moment/src/lib/units/day-of-week.js on lines 304..321
      core/static/vendor/moment/src/lib/units/month.js on lines 210..227

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

      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

                  'control down': function (widget) {
                      if (!widget) {
                          return;
                      }
                      var d = this.date() || this.getMoment();
      core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 2544..2554

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

      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

                  'control up': function (widget) {
                      if (!widget) {
                          return;
                      }
                      var d = this.date() || this.getMoment();
      core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 2555..2565

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

      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 chili-1.8.js has 358 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*  
      ===============================================================================
      Chili is the jQuery code highlighter plugin
      ...............................................................................
                                                     Copyright 2007 / Andrea Ercolino
      Severity: Minor
      Found in core/static/vendor/jquery-expander/demo/chili-1.8.js - About 4 hrs to fix

        Function diff has 114 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        QUnit.diff = (function() {
            function diff(o, n) {
                var ns = {};
                var os = {};
                var i;
        Severity: Major
        Found in core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js - About 4 hrs to fix

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

          export function getSetISODayOfWeek (input) {
              if (!this.isValid()) {
                  return input != null ? this : NaN;
              }
          
          
          Severity: Major
          Found in core/static/vendor/moment/src/lib/units/day-of-week.js and 2 other locations - About 4 hrs to fix
          core/static/vendor/moment/min/moment-with-locales.js on lines 1495..1510
          core/static/vendor/moment/moment.js on lines 1501..1516

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

          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 3 locations. Consider refactoring.
          Open

          function getSetISODayOfWeek (input) {
              if (!this.isValid()) {
                  return input != null ? this : NaN;
              }
          
          
          Severity: Major
          Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 4 hrs to fix
          core/static/vendor/moment/moment.js on lines 1501..1516
          core/static/vendor/moment/src/lib/units/day-of-week.js on lines 246..261

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

          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 3 locations. Consider refactoring.
          Open

          function getSetISODayOfWeek (input) {
              if (!this.isValid()) {
                  return input != null ? this : NaN;
              }
          
          
          Severity: Major
          Found in core/static/vendor/moment/moment.js and 2 other locations - About 4 hrs to fix
          core/static/vendor/moment/min/moment-with-locales.js on lines 1495..1510
          core/static/vendor/moment/src/lib/units/day-of-week.js on lines 246..261

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

          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 getText( elems ) {
              var ret = "", elem;
          
              for ( var i = 0; elems[i]; i++ ) {
                  elem = elems[i];
          Severity: Major
          Found in core/static/vendor/jquery-expander/test/qunit/qunit.js and 1 other location - About 4 hrs to fix
          core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js on lines 1485..1502

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

          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