owncloud/core

View on GitHub

Showing 4,502 of 4,502 total issues

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

OC.L10N.register(
    "files_external",
    {
    "Step 1 failed. Exception: %s" : "L’etapa 1 a fracassat. Error : %s",
    "Step 2 failed. Exception: %s" : "L’etapa 2 a fracassat. Error : %s",
Severity: Major
Found in apps/files_external/l10n/oc.js and 2 other locations - About 2 days to fix
apps/files_sharing/l10n/lv.js on lines 1..100
core/l10n/cy_GB.js on lines 1..100

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

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(
    "core",
    {
    "Sunday" : "ඉරිදා",
    "Monday" : "සඳුදා",
Severity: Major
Found in core/l10n/si_LK.js and 3 other locations - About 2 days to fix
apps/files_sharing/l10n/fi_FI.js on lines 1..95
core/l10n/ta.js on lines 1..95
core/l10n/ta_LK.js on lines 1..95

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

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(
    "core",
    {
    "Sunday" : "ஞாயிற்றுக்கிழமை",
    "Monday" : "திங்கட்கிழமை",
Severity: Major
Found in core/l10n/ta_LK.js and 3 other locations - About 2 days to fix
apps/files_sharing/l10n/fi_FI.js on lines 1..95
core/l10n/si_LK.js on lines 1..95
core/l10n/ta.js on lines 1..95

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

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(
    "core",
    {
    "Sunday" : "ஞாயிற்றுக்கிழமை",
    "Monday" : "திங்கட்கிழமை",
Severity: Major
Found in core/l10n/ta.js and 3 other locations - About 2 days to fix
apps/files_sharing/l10n/fi_FI.js on lines 1..95
core/l10n/si_LK.js on lines 1..95
core/l10n/ta_LK.js on lines 1..95

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

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" : "Palvelimelta-palvelimelle-jakaminen ei ole käytössä tällä palvelimella",
    "The mountpoint name contains invalid characters." : "Liitospisteen nimi sisältää virheellisiä merkkejä.",
Severity: Major
Found in apps/files_sharing/l10n/fi_FI.js and 3 other locations - About 2 days to fix
core/l10n/si_LK.js on lines 1..95
core/l10n/ta.js on lines 1..95
core/l10n/ta_LK.js on lines 1..95

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

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 Version20170101010100.php has 993 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * @author Philipp Schaffrath <pschaffrath@owncloud.com>
 *
 * @copyright Copyright (c) 2018, ownCloud GmbH
Severity: Major
Found in core/Migrations/Version20170101010100.php - About 2 days to fix

    File UsersController.php has 974 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
     * @author Clark Tomlinson <fallen013@gmail.com>
     * @author Joas Schilling <coding@schilljs.com>
    Severity: Major
    Found in settings/Controller/UsersController.php - About 2 days to fix

      File util.php has 965 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * @author Adam Williamson <awilliam@redhat.com>
       * @author Andreas Fischer <bantu@owncloud.com>
       * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
      Severity: Major
      Found in lib/private/legacy/util.php - About 2 days to fix

        File CalDavBackend.php has 957 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * @author Joas Schilling <coding@schilljs.com>
         * @author Stefan Weil <sw@weilnetz.de>
         * @author Thomas Citharel <tcit@tcit.fr>
        Severity: Major
        Found in apps/dav/lib/CalDAV/CalDavBackend.php - About 2 days to fix

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

          OC.L10N.register(
              "files_external",
              {
              "Step 1 failed. Exception: %s" : "Vaihe 1 epäonnistui. Poikkeus: %s",
              "Step 2 failed. Exception: %s" : "Vaihe 2 epäonnistui. Poikkeus: %s",
          Severity: Major
          Found in apps/files_external/l10n/fi_FI.js and 2 other locations - About 2 days to fix
          apps/files_external/l10n/es_MX.js on lines 1..84
          apps/files_sharing/l10n/oc.js on lines 1..84

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

          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_external",
              {
              "Step 1 failed. Exception: %s" : "Paso 1 falló. Excepción: %s",
              "Step 2 failed. Exception: %s" : "Paso 2 falló. Excepción: %s",
          Severity: Major
          Found in apps/files_external/l10n/es_MX.js and 2 other locations - About 2 days to fix
          apps/files_external/l10n/fi_FI.js on lines 1..84
          apps/files_sharing/l10n/oc.js on lines 1..84

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

          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_sharing",
              {
              "Server to server sharing is not enabled on this server" : "Lo partiment de servidor a servidor es pas activat sus aqueste servidor",
              "The mountpoint name contains invalid characters." : "Lo nom del punt de montatge conten de caractèrs invalids.",
          Severity: Major
          Found in apps/files_sharing/l10n/oc.js and 2 other locations - About 2 days to fix
          apps/files_external/l10n/es_MX.js on lines 1..84
          apps/files_external/l10n/fi_FI.js on lines 1..84

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

          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

              aliases: {
              "application/coreldraw": "image",
              "application/epub+zip": "text",
              "application/font-sfnt": "image",
              "application/font-woff": "image",
          Severity: Major
          Found in core/js/mimetypelist.js and 1 other location - About 2 days to fix
          apps/files_external/l10n/sv.js on lines 3..86

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

          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

              {
              "Step 1 failed. Exception: %s" : "Steg 1 flaerade. Undantag: %s",
              "Step 2 failed. Exception: %s" : "Steg 2 misslyckades. Undantag: %s",
              "External storage" : "Extern lagring",
              "Google Drive App Configuration" : "Google Drive Programkonfiguration",
          Severity: Major
          Found in apps/files_external/l10n/sv.js and 1 other location - About 2 days to fix
          core/js/mimetypelist.js on lines 10..93

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

          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_external",
              {
              "Step 1 failed. Exception: %s" : "Langkah 1 gagal. Kecuali: %s",
              "Step 2 failed. Exception: %s" : "Langkah 2 gagal. Kecuali: %s",
          Severity: Major
          Found in apps/files_external/l10n/id.js and 2 other locations - About 2 days to fix
          apps/files_external/l10n/et_EE.js on lines 1..83
          core/l10n/ms_MY.js on lines 1..83

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

          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_external",
              {
              "Step 1 failed. Exception: %s" : "Samm 1 ebaõnnestus. Erind: %s",
              "Step 2 failed. Exception: %s" : "Samm 2 ebaõnnestus. Erind: %s",
          Severity: Major
          Found in apps/files_external/l10n/et_EE.js and 2 other locations - About 2 days to fix
          apps/files_external/l10n/id.js on lines 1..83
          core/l10n/ms_MY.js on lines 1..83

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

          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(
              "core",
              {
              "Sunday" : "Ahad",
              "Monday" : "Isnin",
          Severity: Major
          Found in core/l10n/ms_MY.js and 2 other locations - About 2 days to fix
          apps/files_external/l10n/et_EE.js on lines 1..83
          apps/files_external/l10n/id.js on lines 1..83

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

          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 file-upload.js has 941 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
           * Copyright (c) 2018
           *
           * This file is licensed under the Affero General Public License version 3
           * or later.
          Severity: Major
          Found in apps/files/js/file-upload.js - About 2 days to fix

            File users.js has 926 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * Copyright (c) 2014, Arthur Schiwon <blizzz@owncloud.com>
             * Copyright (c) 2014, Raghu Nayyar <beingminimal@gmail.com>
             * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
             * This file is licensed under the Affero General Public License version 3 or later.
            Severity: Major
            Found in settings/js/users/users.js - About 2 days to fix

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

              OC.L10N.register(
                  "files_external",
                  {
                  "Step 1 failed. Exception: %s" : "Krok 1 zlyhal. Výnimka: %s",
                  "Step 2 failed. Exception: %s" : "Krok 2 zlyhal. Výnimka: %s",
              Severity: Major
              Found in apps/files_external/l10n/sk_SK.js and 3 other locations - About 2 days to fix
              apps/files_sharing/l10n/eo.js on lines 1..79
              apps/files_sharing/l10n/et_EE.js on lines 1..79
              apps/files_sharing/l10n/hu_HU.js on lines 1..79

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

              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