Eye4web/Eye4webZfcUserPm

View on GitHub

Showing 56 of 124 total issues

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

(function ($) {
    "use strict";

    $.fn.select2.locales['nl'] = {
        formatNoMatches: function () { return "Geen resultaten gevonden"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_nl.js and 1 other location - About 1 day to fix
data/public/select2-3.5.2/select2_locale_et.js on lines 6..19

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

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

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

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

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

Refactorings

Further Reading

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

(function ($) {
    "use strict";

    $.fn.select2.locales['et'] = {
        formatNoMatches: function () { return "Tulemused puuduvad"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_et.js and 1 other location - About 1 day to fix
data/public/select2-3.5.2/select2_locale_nl.js on lines 4..17

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

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

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

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

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

Refactorings

Further Reading

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

(function ($) {
    "use strict";

    $.fn.select2.locales['ro'] = {
        formatNoMatches: function () { return "Nu a fost găsit nimic"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_ro.js and 4 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_id.js on lines 6..19
data/public/select2-3.5.2/select2_locale_mk.js on lines 6..19
data/public/select2-3.5.2/select2_locale_pt-PT.js on lines 4..17
data/public/select2-3.5.2/select2_locale_vi.js on lines 6..19

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

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

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

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

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

Refactorings

Further Reading

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

(function ($) {
    "use strict";

    $.fn.select2.locales['mk'] = {
        formatNoMatches: function () { return "Нема пронајдено совпаѓања"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_mk.js and 4 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_id.js on lines 6..19
data/public/select2-3.5.2/select2_locale_pt-PT.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ro.js on lines 4..17
data/public/select2-3.5.2/select2_locale_vi.js on lines 6..19

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

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

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

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

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

Refactorings

Further Reading

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

(function ($) {
    "use strict";

    $.fn.select2.locales['pt-PT'] = {
        formatNoMatches: function () { return "Nenhum resultado encontrado"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_pt-PT.js and 4 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_id.js on lines 6..19
data/public/select2-3.5.2/select2_locale_mk.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ro.js on lines 4..17
data/public/select2-3.5.2/select2_locale_vi.js on lines 6..19

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

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

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

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

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

Refactorings

Further Reading

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

(function ($) {
    "use strict";

    $.fn.select2.locales['id'] = {
        formatNoMatches: function () { return "Tidak ada data yang sesuai"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_id.js and 4 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_mk.js on lines 6..19
data/public/select2-3.5.2/select2_locale_pt-PT.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ro.js on lines 4..17
data/public/select2-3.5.2/select2_locale_vi.js on lines 6..19

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

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

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

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

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

Refactorings

Further Reading

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

(function ($) {
    "use strict";

    $.fn.select2.locales['vi'] = {
        formatNoMatches: function () { return "Không tìm thấy kết quả"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_vi.js and 4 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_id.js on lines 6..19
data/public/select2-3.5.2/select2_locale_mk.js on lines 6..19
data/public/select2-3.5.2/select2_locale_pt-PT.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ro.js on lines 4..17

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

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

(function ($) {
    "use strict";

    $.fn.select2.locales['ja'] = {
        formatNoMatches: function () { return "該当なし"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_ja.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";

    $.fn.select2.locales['hu'] = {
        formatNoMatches: function () { return "Nincs találat."; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_hu.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";

    $.fn.select2.locales['ka'] = {
        formatNoMatches: function () { return "ვერ მოიძებნა"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_ka.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";
    $.fn.select2.locales['zh-TW'] = {
        formatNoMatches: function () { return "沒有找到相符的項目"; },
        formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";},
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_zh-TW.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";
    $.fn.select2.locales['ug-CN'] = {
        formatNoMatches: function () { return "ماس كېلىدىغان ئۇچۇر تېپىلمىدى"; },
        formatInputTooShort: function (input, min) { var n = min - input.length; return "يەنە " + n + " ھەرپ كىرگۈزۈڭ";},
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_ug-CN.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";

    $.fn.select2.locales['he'] = {
        formatNoMatches: function () { return "לא נמצאו התאמות"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_he.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";
    $.fn.select2.locales['zh-CN'] = {
        formatNoMatches: function () { return "没有找到匹配项"; },
        formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_zh-CN.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";

    $.fn.select2.locales['ms'] = {
        formatNoMatches: function () { return "Tiada padanan yang ditemui"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_ms.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";

    $.fn.select2.locales['th'] = {
        formatNoMatches: function () { return "ไม่พบข้อมูล"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_th.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";

    $.fn.select2.locales['ko'] = {
        formatNoMatches: function () { return "결과 없음"; },
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_ko.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_fi.js on lines 4..30
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

(function ($) {
    "use strict";
    $.fn.select2.locales['fi'] = {
        formatNoMatches: function () {
            return "Ei tuloksia";
Severity: Major
Found in data/public/select2-3.5.2/select2_locale_fi.js and 10 other locations - About 1 day to fix
data/public/select2-3.5.2/select2_locale_he.js on lines 6..19
data/public/select2-3.5.2/select2_locale_hu.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ja.js on lines 4..17
data/public/select2-3.5.2/select2_locale_ka.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ko.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ms.js on lines 6..19
data/public/select2-3.5.2/select2_locale_th.js on lines 6..19
data/public/select2-3.5.2/select2_locale_ug-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-CN.js on lines 4..16
data/public/select2-3.5.2/select2_locale_zh-TW.js on lines 4..16

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 216.

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

        destroy: function() {
            $("label[for='" + this.search.attr('id') + "']")
                .attr('for', this.opts.element.attr("id"));
            this.parent.destroy.apply(this, arguments);

Severity: Major
Found in data/public/select2-3.5.2/select2.js and 1 other location - About 3 hrs to fix
data/public/select2-3.5.2/select2.js on lines 2072..2081

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

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

        destroy: function() {
            $("label[for='" + this.focusser.attr('id') + "']")
                .attr('for', this.opts.element.attr("id"));
            this.parent.destroy.apply(this, arguments);

Severity: Major
Found in data/public/select2-3.5.2/select2.js and 1 other location - About 3 hrs to fix
data/public/select2-3.5.2/select2.js on lines 2676..2685

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

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