rilwis/meta-box

View on GitHub

Showing 254 of 254 total issues

File jquery.validate.js has 1254 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery Validation Plugin v1.20.0
 *
 * https://jqueryvalidation.org/
 *
Severity: Major
Found in js/validation/jquery.validate.js - About 3 days to fix

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

        function transform() {
            var $this = $( this ),
                options = $this.data( 'options' ),
                $inline = $this.siblings( '.rwmb-datetime-inline' ),
                $timestamp = $this.siblings( '.rwmb-datetime-timestamp' ),
    Severity: Major
    Found in js/date.js and 1 other location - About 2 days to fix
    js/datetime.js on lines 7..56

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

    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 transform() {
            var $this = $( this ),
                options = $this.data( 'options' ),
                $inline = $this.siblings( '.rwmb-datetime-inline' ),
                $timestamp = $this.siblings( '.rwmb-datetime-timestamp' ),
    Severity: Major
    Found in js/datetime.js and 1 other location - About 2 days to fix
    js/date.js on lines 7..56

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

    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 additional-methods.js has 858 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery Validation Plugin v1.20.0
     *
     * https://jqueryvalidation.org/
     *
    Severity: Major
    Found in js/validation/additional-methods.js - About 2 days to fix

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_cs.js and 5 other locations - About 1 day to fix
      js/validation/i18n/messages_ja.js on lines 1..36
      js/validation/i18n/messages_sr.js on lines 1..36
      js/validation/i18n/messages_sr_lat.js on lines 1..36
      js/validation/i18n/messages_zh.js on lines 1..36
      js/validation/i18n/messages_zh_TW.js on lines 1..37

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_sr_lat.js and 5 other locations - About 1 day to fix
      js/validation/i18n/messages_cs.js on lines 1..36
      js/validation/i18n/messages_ja.js on lines 1..36
      js/validation/i18n/messages_sr.js on lines 1..36
      js/validation/i18n/messages_zh.js on lines 1..36
      js/validation/i18n/messages_zh_TW.js on lines 1..37

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_sr.js and 5 other locations - About 1 day to fix
      js/validation/i18n/messages_cs.js on lines 1..36
      js/validation/i18n/messages_ja.js on lines 1..36
      js/validation/i18n/messages_sr_lat.js on lines 1..36
      js/validation/i18n/messages_zh.js on lines 1..36
      js/validation/i18n/messages_zh_TW.js on lines 1..37

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_zh.js and 5 other locations - About 1 day to fix
      js/validation/i18n/messages_cs.js on lines 1..36
      js/validation/i18n/messages_ja.js on lines 1..36
      js/validation/i18n/messages_sr.js on lines 1..36
      js/validation/i18n/messages_sr_lat.js on lines 1..36
      js/validation/i18n/messages_zh_TW.js on lines 1..37

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_ja.js and 5 other locations - About 1 day to fix
      js/validation/i18n/messages_cs.js on lines 1..36
      js/validation/i18n/messages_sr.js on lines 1..36
      js/validation/i18n/messages_sr_lat.js on lines 1..36
      js/validation/i18n/messages_zh.js on lines 1..36
      js/validation/i18n/messages_zh_TW.js on lines 1..37

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_zh_TW.js and 5 other locations - About 1 day to fix
      js/validation/i18n/messages_cs.js on lines 1..36
      js/validation/i18n/messages_ja.js on lines 1..36
      js/validation/i18n/messages_sr.js on lines 1..36
      js/validation/i18n/messages_sr_lat.js on lines 1..36
      js/validation/i18n/messages_zh.js on lines 1..36

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_es.js and 3 other locations - About 1 day to fix
      js/validation/i18n/messages_es_AR.js on lines 1..39
      js/validation/i18n/messages_es_PE.js on lines 1..39
      js/validation/i18n/messages_pt_PT.js on lines 1..39

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_es_AR.js and 3 other locations - About 1 day to fix
      js/validation/i18n/messages_es.js on lines 1..38
      js/validation/i18n/messages_es_PE.js on lines 1..39
      js/validation/i18n/messages_pt_PT.js on lines 1..39

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_es_PE.js and 3 other locations - About 1 day to fix
      js/validation/i18n/messages_es.js on lines 1..38
      js/validation/i18n/messages_es_AR.js on lines 1..39
      js/validation/i18n/messages_pt_PT.js on lines 1..39

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_pt_PT.js and 3 other locations - About 1 day to fix
      js/validation/i18n/messages_es.js on lines 1..38
      js/validation/i18n/messages_es_AR.js on lines 1..39
      js/validation/i18n/messages_es_PE.js on lines 1..39

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_si.js and 26 other locations - About 1 day to fix
      js/validation/i18n/messages_ar.js on lines 1..35
      js/validation/i18n/messages_az.js on lines 1..35
      js/validation/i18n/messages_bg.js on lines 1..35
      js/validation/i18n/messages_bn_BD.js on lines 1..35
      js/validation/i18n/messages_ca.js on lines 1..35
      js/validation/i18n/messages_el.js on lines 1..35
      js/validation/i18n/messages_eu.js on lines 1..35
      js/validation/i18n/messages_he.js on lines 1..35
      js/validation/i18n/messages_hr.js on lines 1..35
      js/validation/i18n/messages_hy_AM.js on lines 1..35
      js/validation/i18n/messages_ka.js on lines 1..35
      js/validation/i18n/messages_kk.js on lines 1..35
      js/validation/i18n/messages_ko.js on lines 1..35
      js/validation/i18n/messages_lt.js on lines 1..35
      js/validation/i18n/messages_lv.js on lines 1..35
      js/validation/i18n/messages_mk.js on lines 1..35
      js/validation/i18n/messages_my.js on lines 1..35
      js/validation/i18n/messages_ro.js on lines 1..35
      js/validation/i18n/messages_ru.js on lines 1..35
      js/validation/i18n/messages_sd.js on lines 1..35
      js/validation/i18n/messages_sl.js on lines 1..35
      js/validation/i18n/messages_th.js on lines 1..35
      js/validation/i18n/messages_tj.js on lines 1..35
      js/validation/i18n/messages_uk.js on lines 1..35
      js/validation/i18n/messages_ur.js on lines 1..35
      js/validation/i18n/messages_vi.js on lines 1..35

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_kk.js and 26 other locations - About 1 day to fix
      js/validation/i18n/messages_ar.js on lines 1..35
      js/validation/i18n/messages_az.js on lines 1..35
      js/validation/i18n/messages_bg.js on lines 1..35
      js/validation/i18n/messages_bn_BD.js on lines 1..35
      js/validation/i18n/messages_ca.js on lines 1..35
      js/validation/i18n/messages_el.js on lines 1..35
      js/validation/i18n/messages_eu.js on lines 1..35
      js/validation/i18n/messages_he.js on lines 1..35
      js/validation/i18n/messages_hr.js on lines 1..35
      js/validation/i18n/messages_hy_AM.js on lines 1..35
      js/validation/i18n/messages_ka.js on lines 1..35
      js/validation/i18n/messages_ko.js on lines 1..35
      js/validation/i18n/messages_lt.js on lines 1..35
      js/validation/i18n/messages_lv.js on lines 1..35
      js/validation/i18n/messages_mk.js on lines 1..35
      js/validation/i18n/messages_my.js on lines 1..35
      js/validation/i18n/messages_ro.js on lines 1..35
      js/validation/i18n/messages_ru.js on lines 1..35
      js/validation/i18n/messages_sd.js on lines 1..35
      js/validation/i18n/messages_si.js on lines 1..35
      js/validation/i18n/messages_sl.js on lines 1..35
      js/validation/i18n/messages_th.js on lines 1..35
      js/validation/i18n/messages_tj.js on lines 1..35
      js/validation/i18n/messages_uk.js on lines 1..35
      js/validation/i18n/messages_ur.js on lines 1..35
      js/validation/i18n/messages_vi.js on lines 1..35

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_my.js and 26 other locations - About 1 day to fix
      js/validation/i18n/messages_ar.js on lines 1..35
      js/validation/i18n/messages_az.js on lines 1..35
      js/validation/i18n/messages_bg.js on lines 1..35
      js/validation/i18n/messages_bn_BD.js on lines 1..35
      js/validation/i18n/messages_ca.js on lines 1..35
      js/validation/i18n/messages_el.js on lines 1..35
      js/validation/i18n/messages_eu.js on lines 1..35
      js/validation/i18n/messages_he.js on lines 1..35
      js/validation/i18n/messages_hr.js on lines 1..35
      js/validation/i18n/messages_hy_AM.js on lines 1..35
      js/validation/i18n/messages_ka.js on lines 1..35
      js/validation/i18n/messages_kk.js on lines 1..35
      js/validation/i18n/messages_ko.js on lines 1..35
      js/validation/i18n/messages_lt.js on lines 1..35
      js/validation/i18n/messages_lv.js on lines 1..35
      js/validation/i18n/messages_mk.js on lines 1..35
      js/validation/i18n/messages_ro.js on lines 1..35
      js/validation/i18n/messages_ru.js on lines 1..35
      js/validation/i18n/messages_sd.js on lines 1..35
      js/validation/i18n/messages_si.js on lines 1..35
      js/validation/i18n/messages_sl.js on lines 1..35
      js/validation/i18n/messages_th.js on lines 1..35
      js/validation/i18n/messages_tj.js on lines 1..35
      js/validation/i18n/messages_uk.js on lines 1..35
      js/validation/i18n/messages_ur.js on lines 1..35
      js/validation/i18n/messages_vi.js on lines 1..35

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_hr.js and 26 other locations - About 1 day to fix
      js/validation/i18n/messages_ar.js on lines 1..35
      js/validation/i18n/messages_az.js on lines 1..35
      js/validation/i18n/messages_bg.js on lines 1..35
      js/validation/i18n/messages_bn_BD.js on lines 1..35
      js/validation/i18n/messages_ca.js on lines 1..35
      js/validation/i18n/messages_el.js on lines 1..35
      js/validation/i18n/messages_eu.js on lines 1..35
      js/validation/i18n/messages_he.js on lines 1..35
      js/validation/i18n/messages_hy_AM.js on lines 1..35
      js/validation/i18n/messages_ka.js on lines 1..35
      js/validation/i18n/messages_kk.js on lines 1..35
      js/validation/i18n/messages_ko.js on lines 1..35
      js/validation/i18n/messages_lt.js on lines 1..35
      js/validation/i18n/messages_lv.js on lines 1..35
      js/validation/i18n/messages_mk.js on lines 1..35
      js/validation/i18n/messages_my.js on lines 1..35
      js/validation/i18n/messages_ro.js on lines 1..35
      js/validation/i18n/messages_ru.js on lines 1..35
      js/validation/i18n/messages_sd.js on lines 1..35
      js/validation/i18n/messages_si.js on lines 1..35
      js/validation/i18n/messages_sl.js on lines 1..35
      js/validation/i18n/messages_th.js on lines 1..35
      js/validation/i18n/messages_tj.js on lines 1..35
      js/validation/i18n/messages_uk.js on lines 1..35
      js/validation/i18n/messages_ur.js on lines 1..35
      js/validation/i18n/messages_vi.js on lines 1..35

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_ro.js and 26 other locations - About 1 day to fix
      js/validation/i18n/messages_ar.js on lines 1..35
      js/validation/i18n/messages_az.js on lines 1..35
      js/validation/i18n/messages_bg.js on lines 1..35
      js/validation/i18n/messages_bn_BD.js on lines 1..35
      js/validation/i18n/messages_ca.js on lines 1..35
      js/validation/i18n/messages_el.js on lines 1..35
      js/validation/i18n/messages_eu.js on lines 1..35
      js/validation/i18n/messages_he.js on lines 1..35
      js/validation/i18n/messages_hr.js on lines 1..35
      js/validation/i18n/messages_hy_AM.js on lines 1..35
      js/validation/i18n/messages_ka.js on lines 1..35
      js/validation/i18n/messages_kk.js on lines 1..35
      js/validation/i18n/messages_ko.js on lines 1..35
      js/validation/i18n/messages_lt.js on lines 1..35
      js/validation/i18n/messages_lv.js on lines 1..35
      js/validation/i18n/messages_mk.js on lines 1..35
      js/validation/i18n/messages_my.js on lines 1..35
      js/validation/i18n/messages_ru.js on lines 1..35
      js/validation/i18n/messages_sd.js on lines 1..35
      js/validation/i18n/messages_si.js on lines 1..35
      js/validation/i18n/messages_sl.js on lines 1..35
      js/validation/i18n/messages_th.js on lines 1..35
      js/validation/i18n/messages_tj.js on lines 1..35
      js/validation/i18n/messages_uk.js on lines 1..35
      js/validation/i18n/messages_ur.js on lines 1..35
      js/validation/i18n/messages_vi.js on lines 1..35

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

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

      (function( factory ) {
          if ( typeof define === "function" && define.amd ) {
              define( ["jquery", "../jquery.validate"], factory );
          } else if (typeof module === "object" && module.exports) {
              module.exports = factory( require( "jquery" ) );
      Severity: Major
      Found in js/validation/i18n/messages_th.js and 26 other locations - About 1 day to fix
      js/validation/i18n/messages_ar.js on lines 1..35
      js/validation/i18n/messages_az.js on lines 1..35
      js/validation/i18n/messages_bg.js on lines 1..35
      js/validation/i18n/messages_bn_BD.js on lines 1..35
      js/validation/i18n/messages_ca.js on lines 1..35
      js/validation/i18n/messages_el.js on lines 1..35
      js/validation/i18n/messages_eu.js on lines 1..35
      js/validation/i18n/messages_he.js on lines 1..35
      js/validation/i18n/messages_hr.js on lines 1..35
      js/validation/i18n/messages_hy_AM.js on lines 1..35
      js/validation/i18n/messages_ka.js on lines 1..35
      js/validation/i18n/messages_kk.js on lines 1..35
      js/validation/i18n/messages_ko.js on lines 1..35
      js/validation/i18n/messages_lt.js on lines 1..35
      js/validation/i18n/messages_lv.js on lines 1..35
      js/validation/i18n/messages_mk.js on lines 1..35
      js/validation/i18n/messages_my.js on lines 1..35
      js/validation/i18n/messages_ro.js on lines 1..35
      js/validation/i18n/messages_ru.js on lines 1..35
      js/validation/i18n/messages_sd.js on lines 1..35
      js/validation/i18n/messages_si.js on lines 1..35
      js/validation/i18n/messages_sl.js on lines 1..35
      js/validation/i18n/messages_tj.js on lines 1..35
      js/validation/i18n/messages_uk.js on lines 1..35
      js/validation/i18n/messages_ur.js on lines 1..35
      js/validation/i18n/messages_vi.js on lines 1..35

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

      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