Showing 10,536 of 10,536 total issues

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

        modalInstance.result.then(function (modifiedTenant) {
            modifiedTenant.tenant_type_id = modifiedTenant.tenant_type.id;
            modifiedTenant.cost_center_id = modifiedTenant.cost_center.id;
            modifiedTenant.contact_id = modifiedTenant.contact.id;
            if (angular.isDefined(tenant.is_input_counted) == false) {
myems-admin/app/controllers/settings/tenant/tenant.controller.js on lines 78..110

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function Calendar has 449 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Calendar(element, instanceOptions) {
    var t = this;



Severity: Major
Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 2 days to fix

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

            while current_datetime_utc <= end_datetime_utc:
                sub_total = Decimal(0.0)
                sub_maximum = None
                sub_counter = 0
                for row in rows_hourly:
    Severity: Major
    Found in myems-api/core/utilities.py and 1 other location - About 2 days to fix
    myems-api/core/utilities.py on lines 422..445

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

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

            while current_datetime_utc <= end_datetime_utc:
                sub_total = Decimal(0.0)
                sub_maximum = None
                sub_counter = 0
                for row in rows_hourly:
    Severity: Major
    Found in myems-api/core/utilities.py and 1 other location - About 2 days to fix
    myems-api/core/utilities.py on lines 462..485

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

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

        $scope.add = function(t) {
            if (t.peak_type == null || t.price == null || t.peak_type == ''){
                return false;
            }
            t.start_time_of_day= t.start_hour + ':' + t.start_min + ':' + t.start_second;
    myems-admin/app/controllers/settings/tariff/tariff.controller.js on lines 311..337

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

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

        $scope.add = function(t) {
            if (t.peak_type == null || t.price == null || t.peak_type == ''){
                return false;
            }
            t.start_time_of_day= t.start_hour + ':' + t.start_min + ':' + t.start_second;
    myems-admin/app/controllers/settings/tariff/tariff.controller.js on lines 396..422

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

    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 35 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_ja-jp.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_th.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_ms-bn.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_km.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_ko-kp.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_zh-hant.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_ms.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_zh-hans-cn.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_id.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_in.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_vi.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_km-kh.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_lo.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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 35 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_ko.js and 34 other locations - About 2 days to fix
    myems-admin/js/angular/i18n/angular-locale_id-id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_id.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_in.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja-jp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ja.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km-kh.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_km.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kp.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ko-kr.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo-la.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_lo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-bn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_ms.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my-mm.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_my.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th-th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_th.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi-vn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_vi.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-cn.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans-sg.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hans.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-mo.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hant.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-hk.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh-tw.js on lines 2..125
    myems-admin/js/angular/i18n/angular-locale_zh.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 387.

    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