divio/django-cms

View on GitHub

Showing 290 of 869 total issues

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

(function ($) {
    "use strict";

    $.fn.select2.locales['no'] = {
        formatNoMatches: function () { return "Ingen treff"; },
Severity: Major
Found in cms/static/cms/js/select2/select2_locale_no.js and 1 other location - About 1 day to fix
cms/static/cms/js/select2/select2_locale_sv.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 226.

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

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

Severity: Major
Found in cms/test_utils/project/urls_2.py and 1 other location - About 1 day to fix
cms/test_utils/project/urls_3.py on lines 0..29

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

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

Severity: Major
Found in cms/test_utils/project/urls_3.py and 1 other location - About 1 day to fix
cms/test_utils/project/urls_2.py on lines 0..29

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

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in cms/test_utils/project/urls_for_apphook_tests.py and 3 other locations - About 6 hrs to fix
cms/test_utils/project/fourth_urls_for_apphook_tests.py on lines 0..22
cms/test_utils/project/second_urls_for_apphook_tests.py on lines 0..23
cms/test_utils/project/third_urls_for_apphook_tests.py on lines 0..22

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

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in cms/test_utils/project/fourth_urls_for_apphook_tests.py and 3 other locations - About 6 hrs to fix
cms/test_utils/project/second_urls_for_apphook_tests.py on lines 0..23
cms/test_utils/project/third_urls_for_apphook_tests.py on lines 0..22
cms/test_utils/project/urls_for_apphook_tests.py on lines 0..22

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

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in cms/test_utils/project/second_urls_for_apphook_tests.py and 3 other locations - About 6 hrs to fix
cms/test_utils/project/fourth_urls_for_apphook_tests.py on lines 0..22
cms/test_utils/project/third_urls_for_apphook_tests.py on lines 0..22
cms/test_utils/project/urls_for_apphook_tests.py on lines 0..22

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

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in cms/test_utils/project/third_urls_for_apphook_tests.py and 3 other locations - About 6 hrs to fix
cms/test_utils/project/fourth_urls_for_apphook_tests.py on lines 0..22
cms/test_utils/project/second_urls_for_apphook_tests.py on lines 0..23
cms/test_utils/project/urls_for_apphook_tests.py on lines 0..22

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

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

                    if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {
                        this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
                    } else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) {
                        this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
                    }
Severity: Major
Found in cms/static/cms/js/modules/jquery.ui.nestedsortable.js and 1 other location - About 6 hrs to fix
cms/static/cms/js/modules/jquery.ui.nestedsortable.js on lines 105..109

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

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

                    if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {
                        this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
                    } else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) {
                        this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
                    }
Severity: Major
Found in cms/static/cms/js/modules/jquery.ui.nestedsortable.js and 1 other location - About 6 hrs to fix
cms/static/cms/js/modules/jquery.ui.nestedsortable.js on lines 99..103

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

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