owncloud/core

View on GitHub

Showing 4,482 of 4,482 total issues

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

OC.L10N.register(
    "files",
    {
    "Storage is temporarily not available" : "Depolama geçici olarak müsait değil",
    "Storage invalid" : "Depolama geçersiz",
Severity: Major
Found in apps/files/l10n/tr.js and 4 other locations - About 4 days to fix
apps/files/l10n/de.js on lines 1..152
apps/files/l10n/de_DE.js on lines 1..152
apps/files/l10n/en_GB.js on lines 1..152
apps/files/l10n/sq.js on lines 1..152

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

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

OC.L10N.register(
    "files",
    {
    "Storage is temporarily not available" : "Speicher ist vorübergehend nicht verfügbar",
    "Storage invalid" : "Speicher ungültig",
Severity: Major
Found in apps/files/l10n/de.js and 4 other locations - About 4 days to fix
apps/files/l10n/de_DE.js on lines 1..152
apps/files/l10n/en_GB.js on lines 1..152
apps/files/l10n/sq.js on lines 1..152
apps/files/l10n/tr.js on lines 1..152

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Server to server sharing is not enabled on this server" : "بۇ مۇلازىمېتىردا مۇلازىمېتىردىن مۇلازىمېتىرغا ھەمبەھىرلەش قوزغىتىلمىغان",
    "The mountpoint name contains invalid characters." : "ئىگەرلەش ئىسمى ئىناۋەتسىز ھەرىپنى ئۆز-ئىچىگە ئالغان.",
Severity: Major
Found in apps/files_sharing/l10n/ug.js and 1 other location - About 4 days to fix
apps/files_sharing/l10n/el.js on lines 1..154

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Server to server sharing is not enabled on this server" : "Ο διαμοιρασμός μεταξύ διακομιστών δεν έχει ενεργοποιηθεί σε αυτόν το διακομιστή",
    "The mountpoint name contains invalid characters." : "Το όνομα σημείου προσάρτησης περιέχει μη έγκυρους χαρακτήρες.",
Severity: Major
Found in apps/files_sharing/l10n/el.js and 1 other location - About 4 days to fix
apps/files_sharing/l10n/ug.js on lines 1..154

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

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

OC.L10N.register(
    "files",
    {
    "Storage is temporarily not available" : "ไม่สามารถใช้พื้นที่จัดเก็บได้ชั่วคราว",
    "Storage invalid" : "การจัดเก็บข้อมูลไม่ถูกต้อง",
Severity: Major
Found in apps/files/l10n/th_TH.js and 1 other location - About 4 days to fix
apps/files/l10n/zh_CN.js on lines 1..151

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

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

OC.L10N.register(
    "files",
    {
    "Storage is temporarily not available" : "存储临时性不可用",
    "Storage invalid" : "存储空间无效",
Severity: Major
Found in apps/files/l10n/zh_CN.js and 1 other location - About 4 days to fix
apps/files/l10n/th_TH.js on lines 1..151

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

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

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

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

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

Refactorings

Further Reading

Function _generateHTML has a Cognitive Complexity of 220 (exceeds 5 allowed). Consider refactoring.
Open

    $.datepicker._generateHTML = function( inst ) {
        var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
            controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
            monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
            selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
Severity: Minor
Found in core/js/js.js - About 4 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

OC.L10N.register(
    "files",
    {
    "Storage is temporarily not available" : "Складот е привремено недостапен",
    "Storage invalid" : "Складиштето не е валидно",
Severity: Major
Found in apps/files/l10n/mk.js and 1 other location - About 3 days to fix
apps/files/l10n/is.js on lines 1..131

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

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

OC.L10N.register(
    "files",
    {
    "Storage is temporarily not available" : "Gagnageymsla ekki tiltæk í augnablikinu",
    "Storage invalid" : "Ógild gagnageymsla",
Severity: Major
Found in apps/files/l10n/is.js and 1 other location - About 3 days to fix
apps/files/l10n/mk.js on lines 1..131

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

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

File View.php has 1478 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
 * @author Bart Visscher <bartv@thisnet.nl>
 * @author Björn Schießle <bjoern@schiessle.org>
Severity: Major
Found in lib/private/Files/View.php - About 3 days to fix

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

    OC.L10N.register(
        "files_sharing",
        {
        "Server to server sharing is not enabled on this server" : "Neste servidor non está activada a compartición de servidor a servidor",
        "The mountpoint name contains invalid characters." : "O nome do punto de montaxe contén caracteres incorrectos",
    Severity: Major
    Found in apps/files_sharing/l10n/gl.js and 3 other locations - About 3 days to fix
    apps/files_sharing/l10n/ar.js on lines 1..133
    apps/files_sharing/l10n/he.js on lines 1..133
    apps/files_sharing/l10n/zh_TW.js on lines 1..133

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

    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

    OC.L10N.register(
        "files_sharing",
        {
        "Server to server sharing is not enabled on this server" : "שיתוף שרת לשרת לא מופעל בשרת זה",
        "The mountpoint name contains invalid characters." : "שם ה- mountpoint מכיל תווים לא חוקיים.",
    Severity: Major
    Found in apps/files_sharing/l10n/he.js and 3 other locations - About 3 days to fix
    apps/files_sharing/l10n/ar.js on lines 1..133
    apps/files_sharing/l10n/gl.js on lines 1..133
    apps/files_sharing/l10n/zh_TW.js on lines 1..133

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

    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

    OC.L10N.register(
        "files_sharing",
        {
        "Server to server sharing is not enabled on this server" : "مشاركة الخادم إلى الخادم غير مفعلة على هذا الخادم",
        "The mountpoint name contains invalid characters." : "يحتوي اسم نقطة التركيب على أحرف غير صالحة.",
    Severity: Major
    Found in apps/files_sharing/l10n/ar.js and 3 other locations - About 3 days to fix
    apps/files_sharing/l10n/gl.js on lines 1..133
    apps/files_sharing/l10n/he.js on lines 1..133
    apps/files_sharing/l10n/zh_TW.js on lines 1..133

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

    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

    OC.L10N.register(
        "files_sharing",
        {
        "Server to server sharing is not enabled on this server" : "伺服器對伺服器共享在這台伺服器上面並未啟用",
        "The mountpoint name contains invalid characters." : "掛載的名稱含有不合法的字元",
    Severity: Major
    Found in apps/files_sharing/l10n/zh_TW.js and 3 other locations - About 3 days to fix
    apps/files_sharing/l10n/ar.js on lines 1..133
    apps/files_sharing/l10n/gl.js on lines 1..133
    apps/files_sharing/l10n/he.js on lines 1..133

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

    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

    Method __construct has 761 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function __construct($webRoot, \OC\Config $config) {
            parent::__construct();
            $this->webRoot = $webRoot;
    
            $this->registerService('SettingsManager', function (Server $c) {
    Severity: Major
    Found in lib/private/Server.php - About 3 days to fix

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

      OC.L10N.register(
          "files_external",
          {
          "Step 1 failed. Exception: %s" : "步骤 1 失败。异常:%s",
          "Step 2 failed. Exception: %s" : "步骤 2 失败。异常:%s",
      Severity: Major
      Found in apps/files_external/l10n/zh_CN.js and 12 other locations - About 3 days to fix
      apps/files_external/l10n/bg_BG.js on lines 1..123
      apps/files_external/l10n/de.js on lines 1..123
      apps/files_external/l10n/de_DE.js on lines 1..123
      apps/files_external/l10n/el.js on lines 1..123
      apps/files_external/l10n/en_GB.js on lines 1..123
      apps/files_external/l10n/es.js on lines 1..123
      apps/files_external/l10n/pt_BR.js on lines 1..123
      apps/files_external/l10n/ru.js on lines 1..123
      apps/files_external/l10n/sq.js on lines 1..123
      apps/files_external/l10n/th_TH.js on lines 1..123
      apps/files_external/l10n/tr.js on lines 1..123
      apps/files_sharing/l10n/fr.js on lines 1..123

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

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

      OC.L10N.register(
          "files_external",
          {
          "Step 1 failed. Exception: %s" : "Шаг 1 неудачен. Исключение: %s",
          "Step 2 failed. Exception: %s" : "Шаг 2 неудачен. Исключение: %s",
      Severity: Major
      Found in apps/files_external/l10n/ru.js and 12 other locations - About 3 days to fix
      apps/files_external/l10n/bg_BG.js on lines 1..123
      apps/files_external/l10n/de.js on lines 1..123
      apps/files_external/l10n/de_DE.js on lines 1..123
      apps/files_external/l10n/el.js on lines 1..123
      apps/files_external/l10n/en_GB.js on lines 1..123
      apps/files_external/l10n/es.js on lines 1..123
      apps/files_external/l10n/pt_BR.js on lines 1..123
      apps/files_external/l10n/sq.js on lines 1..123
      apps/files_external/l10n/th_TH.js on lines 1..123
      apps/files_external/l10n/tr.js on lines 1..123
      apps/files_external/l10n/zh_CN.js on lines 1..123
      apps/files_sharing/l10n/fr.js on lines 1..123

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

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

      OC.L10N.register(
          "files_external",
          {
          "Step 1 failed. Exception: %s" : "Step 1 failed. Exception: %s",
          "Step 2 failed. Exception: %s" : "Step 2 failed. Exception: %s",
      Severity: Major
      Found in apps/files_external/l10n/en_GB.js and 12 other locations - About 3 days to fix
      apps/files_external/l10n/bg_BG.js on lines 1..123
      apps/files_external/l10n/de.js on lines 1..123
      apps/files_external/l10n/de_DE.js on lines 1..123
      apps/files_external/l10n/el.js on lines 1..123
      apps/files_external/l10n/es.js on lines 1..123
      apps/files_external/l10n/pt_BR.js on lines 1..123
      apps/files_external/l10n/ru.js on lines 1..123
      apps/files_external/l10n/sq.js on lines 1..123
      apps/files_external/l10n/th_TH.js on lines 1..123
      apps/files_external/l10n/tr.js on lines 1..123
      apps/files_external/l10n/zh_CN.js on lines 1..123
      apps/files_sharing/l10n/fr.js on lines 1..123

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

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

      OC.L10N.register(
          "files_external",
          {
          "Step 1 failed. Exception: %s" : "Passo 1 falhou. Exceção: %s",
          "Step 2 failed. Exception: %s" : "Passo 2 falhou. Exceção: %s",
      Severity: Major
      Found in apps/files_external/l10n/pt_BR.js and 12 other locations - About 3 days to fix
      apps/files_external/l10n/bg_BG.js on lines 1..123
      apps/files_external/l10n/de.js on lines 1..123
      apps/files_external/l10n/de_DE.js on lines 1..123
      apps/files_external/l10n/el.js on lines 1..123
      apps/files_external/l10n/en_GB.js on lines 1..123
      apps/files_external/l10n/es.js on lines 1..123
      apps/files_external/l10n/ru.js on lines 1..123
      apps/files_external/l10n/sq.js on lines 1..123
      apps/files_external/l10n/th_TH.js on lines 1..123
      apps/files_external/l10n/tr.js on lines 1..123
      apps/files_external/l10n/zh_CN.js on lines 1..123
      apps/files_sharing/l10n/fr.js on lines 1..123

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

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

      OC.L10N.register(
          "files_external",
          {
          "Step 1 failed. Exception: %s" : "Schritt 1 fehlgeschlagen. Fehlermeldung: %s",
          "Step 2 failed. Exception: %s" : "Schritt 2 fehlgeschlagen. Fehlermeldung: %s",
      Severity: Major
      Found in apps/files_external/l10n/de_DE.js and 12 other locations - About 3 days to fix
      apps/files_external/l10n/bg_BG.js on lines 1..123
      apps/files_external/l10n/de.js on lines 1..123
      apps/files_external/l10n/el.js on lines 1..123
      apps/files_external/l10n/en_GB.js on lines 1..123
      apps/files_external/l10n/es.js on lines 1..123
      apps/files_external/l10n/pt_BR.js on lines 1..123
      apps/files_external/l10n/ru.js on lines 1..123
      apps/files_external/l10n/sq.js on lines 1..123
      apps/files_external/l10n/th_TH.js on lines 1..123
      apps/files_external/l10n/tr.js on lines 1..123
      apps/files_external/l10n/zh_CN.js on lines 1..123
      apps/files_sharing/l10n/fr.js on lines 1..123

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

      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