Showing 10,536 of 10,536 total issues

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_es-ea.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_es-mx.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_es-bz.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_kk-kz.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_nb.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_te.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_ta-my.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_az-latn-az.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_no-no.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_ne-np.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_eu-es.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_el-cy.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_ta-sg.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_es-us.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_ta-in.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_es-ar.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_ml.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-fr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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

angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in myems-admin/js/angular/i18n/angular-locale_gsw-fr.js and 94 other locations - About 2 days to fix
myems-admin/js/angular/i18n/angular-locale_af-na.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af-za.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn-az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_az.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg-bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_bg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_chr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el-gr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_el.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-419.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ar.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bo.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-br.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-bz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-co.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-cu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-do.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ea.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ec.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-gt.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-hn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ic.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-mx.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ni.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pa.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pe.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ph.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-pr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-py.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-sv.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-uy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es-ve.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu-es.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_eu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-ch.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw-li.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_gsw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw-us.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_haw.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu-hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_hu.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka-ge.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ka.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk-kz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_kk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky-kg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ky.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ml.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn-mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_mn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb-sj.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_nb.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne-np.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ne.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no-no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_no.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_or.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-al.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-mk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq-xk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_sq.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-lk.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-my.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta-sg.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_ta.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te-in.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_te.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-cy.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr-tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_tr.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab-af.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-arab.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-cyrl.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn-uz.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz-latn.js on lines 2..125
myems-admin/js/angular/i18n/angular-locale_uz.js on lines 2..125

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

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