owncloud/core

View on GitHub

Showing 1,252 of 4,482 total issues

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "نامەلۇم ھۆججەت تىپى",
    "Invalid image" : "سۈرەت ئىناۋەتسىز",
Severity: Major
Found in lib/l10n/ug.js and 18 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "فېدىراتسىيەلىك ھەمبەھىرلەش",
    "Add to" : "غا قېتىش",
Severity: Major
Found in apps/federatedfilesharing/l10n/ug.js and 18 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Федеративно споделяне",
    "Add to" : "Добавяне към",
Severity: Major
Found in apps/federatedfilesharing/l10n/bg_BG.js and 18 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Compartilhamento federado",
    "Add to" : "Adicionar para ",
Severity: Major
Found in apps/federatedfilesharing/l10n/pt_BR.js and 18 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Compartido federado",
    "Add to" : "Añadir a ",
Severity: Major
Found in apps/federatedfilesharing/l10n/es.js and 18 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "联合云共享",
    "Add to" : "添加",
Severity: Major
Found in apps/federatedfilesharing/l10n/zh_CN.js and 18 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

Duplicated Code

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

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

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

Tuning

This issue has a mass of 173.

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

            $calendar = [
                'id' => $row['id'],
                'uri' => $row['publicuri'],
                'principaluri' => $this->convertPrincipal($row['principaluri']),
                '{' . Plugin::NS_CALENDARSERVER . '}getctag' => 'http://sabre.io/ns/sync/' . ($row['synctoken']?:'0'),
Severity: Major
Found in apps/dav/lib/CalDAV/CalDavBackend.php and 1 other location - About 6 hrs to fix
apps/dav/lib/CalDAV/CalDavBackend.php on lines 410..421

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

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

        $calendar = [
            'id' => $row['id'],
            'uri' => $row['publicuri'],
            'principaluri' => $this->convertPrincipal($row['principaluri']),
            '{' . Plugin::NS_CALENDARSERVER . '}getctag' => 'http://sabre.io/ns/sync/' . ($row['synctoken']?:'0'),
Severity: Major
Found in apps/dav/lib/CalDAV/CalDavBackend.php and 1 other location - About 6 hrs to fix
apps/dav/lib/CalDAV/CalDavBackend.php on lines 346..357

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

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

    private function getIdFromDB($mimetype) {
        $qb = $this->dbConnection->getQueryBuilder();
        $qb->select('id', 'mimetype')
            ->from('mimetypes')
            ->where(
Severity: Major
Found in lib/private/Files/Type/Loader.php and 1 other location - About 6 hrs to fix
lib/private/Files/Type/Loader.php on lines 248..275

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

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

    private function getMimetypeFromDB($id) {
        $qb = $this->dbConnection->getQueryBuilder();
        $qb->select('id', 'mimetype')
            ->from('mimetypes')
            ->where(
Severity: Major
Found in lib/private/Files/Type/Loader.php and 1 other location - About 6 hrs to fix
lib/private/Files/Type/Loader.php on lines 214..241

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

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

        <?php foreach ($_['personalNav'] as $item): ?>
        <li class="<?php $item['active'] ? p(' active ') : p('') ?>">
            <?php if (\strpos($item['icon'], '/', 1) !== false): ?>
                <a class="svg <?php $item['active'] ? p(' active ') : p('') ?>" style="background-image: url(<?php p($item['icon']) ?>)" href='<?php p($item['link']); ?>'><?php p($item['name']) ?></a>
            <?php else: ?>
Severity: Major
Found in settings/templates/settingsPage.php and 1 other location - About 6 hrs to fix
settings/templates/settingsPage.php on lines 38..46

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

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

            <?php foreach ($_['adminNav'] as $item): ?>
                <li class="<?php $item['active'] ? p(' active ') : p('') ?>">
                    <?php if (\strpos($item['icon'], '/', 1) !== false): ?>
                        <a class="svg <?php $item['active'] ? p(' active ') : p('') ?>" style="background-image: url(<?php p($item['icon']) ?>)" href='<?php p($item['link']); ?>'><?php p($item['name']) ?></a>
                    <?php else: ?>
Severity: Major
Found in settings/templates/settingsPage.php and 1 other location - About 6 hrs to fix
settings/templates/settingsPage.php on lines 25..33

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

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

OC.L10N.register(
    "files",
    {
    "Close" : "වසන්න",
    "Upload cancelled." : "උඩුගත කිරීම අත් හරින්න ලදී",
Severity: Major
Found in apps/files/l10n/si.js and 2 other locations - About 6 hrs to fix
apps/files/l10n/zh_HK.js on lines 1..35
lib/l10n/nn_NO.js on lines 1..35

Duplicated Code

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

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

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

Tuning

This issue has a mass of 168.

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

OC.L10N.register(
    "files",
    {
    "Unknown error" : "不明錯誤",
    "All files" : "所有文件",
Severity: Major
Found in apps/files/l10n/zh_HK.js and 2 other locations - About 6 hrs to fix
apps/files/l10n/si.js on lines 1..35
lib/l10n/nn_NO.js on lines 1..35

Duplicated Code

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

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

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

Tuning

This issue has a mass of 168.

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "Ukjend filtype",
    "Invalid image" : "Ugyldig bilete",
Severity: Major
Found in lib/l10n/nn_NO.js and 2 other locations - About 6 hrs to fix
apps/files/l10n/si.js on lines 1..35
apps/files/l10n/zh_HK.js on lines 1..35

Duplicated Code

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

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

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

Tuning

This issue has a mass of 168.

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Етикети",
    "Tagged files" : "Файлове с етикети",
Severity: Major
Found in apps/systemtags/l10n/bg_BG.js and 15 other locations - About 6 hrs to fix
apps/systemtags/l10n/de.js on lines 1..34
apps/systemtags/l10n/de_DE.js on lines 1..34
apps/systemtags/l10n/el.js on lines 1..34
apps/systemtags/l10n/en_GB.js on lines 1..34
apps/systemtags/l10n/es.js on lines 1..34
apps/systemtags/l10n/he.js on lines 1..34
apps/systemtags/l10n/pt_BR.js on lines 1..34
apps/systemtags/l10n/ru.js on lines 1..34
apps/systemtags/l10n/sq.js on lines 1..34
apps/systemtags/l10n/th_TH.js on lines 1..34
apps/systemtags/l10n/tr.js on lines 1..34
apps/systemtags/l10n/ug.js on lines 1..34
apps/systemtags/l10n/zh_CN.js on lines 1..34
core/l10n/ku_IQ.js on lines 1..34
lib/l10n/cy_GB.js on lines 1..34

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Tags",
    "Tagged files" : "Tags",
Severity: Major
Found in apps/systemtags/l10n/de_DE.js and 15 other locations - About 6 hrs to fix
apps/systemtags/l10n/bg_BG.js on lines 1..34
apps/systemtags/l10n/de.js on lines 1..34
apps/systemtags/l10n/el.js on lines 1..34
apps/systemtags/l10n/en_GB.js on lines 1..34
apps/systemtags/l10n/es.js on lines 1..34
apps/systemtags/l10n/he.js on lines 1..34
apps/systemtags/l10n/pt_BR.js on lines 1..34
apps/systemtags/l10n/ru.js on lines 1..34
apps/systemtags/l10n/sq.js on lines 1..34
apps/systemtags/l10n/th_TH.js on lines 1..34
apps/systemtags/l10n/tr.js on lines 1..34
apps/systemtags/l10n/ug.js on lines 1..34
apps/systemtags/l10n/zh_CN.js on lines 1..34
core/l10n/ku_IQ.js on lines 1..34
lib/l10n/cy_GB.js on lines 1..34

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "بەلگەلەر",
    "Tagged files" : "خەتكۈچلەنگەن ھۆججەت",
Severity: Major
Found in apps/systemtags/l10n/ug.js and 15 other locations - About 6 hrs to fix
apps/systemtags/l10n/bg_BG.js on lines 1..34
apps/systemtags/l10n/de.js on lines 1..34
apps/systemtags/l10n/de_DE.js on lines 1..34
apps/systemtags/l10n/el.js on lines 1..34
apps/systemtags/l10n/en_GB.js on lines 1..34
apps/systemtags/l10n/es.js on lines 1..34
apps/systemtags/l10n/he.js on lines 1..34
apps/systemtags/l10n/pt_BR.js on lines 1..34
apps/systemtags/l10n/ru.js on lines 1..34
apps/systemtags/l10n/sq.js on lines 1..34
apps/systemtags/l10n/th_TH.js on lines 1..34
apps/systemtags/l10n/tr.js on lines 1..34
apps/systemtags/l10n/zh_CN.js on lines 1..34
core/l10n/ku_IQ.js on lines 1..34
lib/l10n/cy_GB.js on lines 1..34

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "标签",
    "Tagged files" : "标签文件",
Severity: Major
Found in apps/systemtags/l10n/zh_CN.js and 15 other locations - About 6 hrs to fix
apps/systemtags/l10n/bg_BG.js on lines 1..34
apps/systemtags/l10n/de.js on lines 1..34
apps/systemtags/l10n/de_DE.js on lines 1..34
apps/systemtags/l10n/el.js on lines 1..34
apps/systemtags/l10n/en_GB.js on lines 1..34
apps/systemtags/l10n/es.js on lines 1..34
apps/systemtags/l10n/he.js on lines 1..34
apps/systemtags/l10n/pt_BR.js on lines 1..34
apps/systemtags/l10n/ru.js on lines 1..34
apps/systemtags/l10n/sq.js on lines 1..34
apps/systemtags/l10n/th_TH.js on lines 1..34
apps/systemtags/l10n/tr.js on lines 1..34
apps/systemtags/l10n/ug.js on lines 1..34
core/l10n/ku_IQ.js on lines 1..34
lib/l10n/cy_GB.js on lines 1..34

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Etiquetas",
    "Tagged files" : "Arquivos etiquetados",
Severity: Major
Found in apps/systemtags/l10n/pt_BR.js and 15 other locations - About 6 hrs to fix
apps/systemtags/l10n/bg_BG.js on lines 1..34
apps/systemtags/l10n/de.js on lines 1..34
apps/systemtags/l10n/de_DE.js on lines 1..34
apps/systemtags/l10n/el.js on lines 1..34
apps/systemtags/l10n/en_GB.js on lines 1..34
apps/systemtags/l10n/es.js on lines 1..34
apps/systemtags/l10n/he.js on lines 1..34
apps/systemtags/l10n/ru.js on lines 1..34
apps/systemtags/l10n/sq.js on lines 1..34
apps/systemtags/l10n/th_TH.js on lines 1..34
apps/systemtags/l10n/tr.js on lines 1..34
apps/systemtags/l10n/ug.js on lines 1..34
apps/systemtags/l10n/zh_CN.js on lines 1..34
core/l10n/ku_IQ.js on lines 1..34
lib/l10n/cy_GB.js on lines 1..34

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

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