owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

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

    function up() {
        var select = -1;
        $("#fileList tr").each(function(index) {
            if ($(this).hasClass("mouseOver")) {
                select = index - 1;
Severity: Major
Found in apps/files/js/keyboardshortcuts.js and 1 other location - About 6 hrs to fix
apps/files/js/keyboardshortcuts.js on lines 63..80

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

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

    public function beforeMethod(RequestInterface $request, ResponseInterface $response) {
        $path = $request->getPath();
        $method = $request->getMethod();
        $lowercaseMethod = \strtolower($method);
        $token = $request->getRawServerValue('PHP_AUTH_USER');
Severity: Major
Found in apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php and 1 other location - About 6 hrs to fix
apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php on lines 99..132

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

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

    public function afterMethod(RequestInterface $request, ResponseInterface $response) {
        $path = $request->getPath();
        $method = $request->getMethod();
        $lowercaseMethod = \strtolower($method);
        $token = $request->getRawServerValue('PHP_AUTH_USER');
Severity: Major
Found in apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php and 1 other location - About 6 hrs to fix
apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php on lines 58..91

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

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

Preview has 45 functions (exceeds 20 allowed). Consider refactoring.
Open

class Preview {
    //the thumbnail folder
    public const THUMBNAILS_FOLDER = 'thumbnails';

    public const MODE_FILL = 'fill';
Severity: Minor
Found in lib/private/Preview.php - About 6 hrs to fix

    OC_App has 45 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class OC_App {
        private static $adminForms = [];
        private static $personalForms = [];
        private static $appTypes = [];
        private static $loadedApps = [];
    Severity: Minor
    Found in lib/private/legacy/app.php - About 6 hrs to fix

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

      <?php
      /**
       * @author Christoph Wurst <christoph@owncloud.com>
       *
       * @copyright Copyright (c) 2018, ownCloud GmbH
      Severity: Major
      Found in core/Command/TwoFactorAuth/Enable.php and 1 other location - About 6 hrs to fix
      core/Command/TwoFactorAuth/Disable.php on lines 1..63

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

      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
      /**
       * @author Christoph Wurst <christoph@owncloud.com>
       *
       * @copyright Copyright (c) 2018, ownCloud GmbH
      Severity: Major
      Found in core/Command/TwoFactorAuth/Disable.php and 1 other location - About 6 hrs to fix
      core/Command/TwoFactorAuth/Enable.php on lines 1..63

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

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "Merki",
          "Tagged files" : "Merktar skrár",
      Severity: Major
      Found in apps/systemtags/l10n/is.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "Tag",
          "Tagged files" : "File con tag",
      Severity: Major
      Found in apps/systemtags/l10n/it.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "Etiquetas",
          "Tagged files" : "Ficheiros etiquetados",
      Severity: Major
      Found in apps/systemtags/l10n/gl.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "federatedfilesharing",
          {
          "Federated sharing" : "مشاركة موحدة",
          "Loading..." : "جاري التحميل ...",
      Severity: Major
      Found in apps/federatedfilesharing/l10n/ar.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "Etiquetas",
          "Tagged files" : "Ficheiros etiquetados",
      Severity: Major
      Found in apps/systemtags/l10n/pt_PT.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "federatedfilesharing",
          {
          "Federated sharing" : "שיתוף מאוגד",
          "Loading..." : "בטעינה...",
      Severity: Major
      Found in apps/federatedfilesharing/l10n/he.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "علامات",
          "Tagged files" : "الملفات ذات العلامات",
      Severity: Major
      Found in apps/systemtags/l10n/ar.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "Etykiety",
          "Tagged files" : "Otagowane pliki",
      Severity: Major
      Found in apps/systemtags/l10n/pl.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "systemtags",
          {
          "Tags" : "Tags",
          "Tagged files" : "Tags",
      Severity: Major
      Found in apps/systemtags/l10n/de_CH.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "federatedfilesharing",
          {
          "Federated sharing" : "Federated Delning",
          "Add to" : "Lägg till till",
      Severity: Major
      Found in apps/federatedfilesharing/l10n/sv.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "files",
          {
          "Close" : "மூடுக",
          "Favorites" : "விருப்பங்கள்",
      Severity: Major
      Found in apps/files/l10n/ta.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

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

      OC.L10N.register(
          "core",
          {
          "Sunday" : "Linggo",
          "Monday" : "Lunes",
      Severity: Major
      Found in core/l10n/fil.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/be.js on lines 1..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 158.

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

      OC.L10N.register(
          "core",
          {
          "Sunday" : "Нядзеля",
          "Monday" : "Панядзелак",
      Severity: Major
      Found in core/l10n/be.js and 19 other locations - About 6 hrs to fix
      apps/federatedfilesharing/l10n/ar.js on lines 1..33
      apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
      apps/federatedfilesharing/l10n/gl.js on lines 1..33
      apps/federatedfilesharing/l10n/he.js on lines 1..33
      apps/federatedfilesharing/l10n/sv.js on lines 1..33
      apps/files/l10n/ta.js on lines 1..33
      apps/files_sharing/l10n/km.js on lines 1..33
      apps/systemtags/l10n/ar.js on lines 1..33
      apps/systemtags/l10n/ca.js on lines 1..33
      apps/systemtags/l10n/de_CH.js on lines 1..33
      apps/systemtags/l10n/gl.js on lines 1..33
      apps/systemtags/l10n/is.js on lines 1..33
      apps/systemtags/l10n/it.js on lines 1..33
      apps/systemtags/l10n/ko.js on lines 1..33
      apps/systemtags/l10n/pl.js on lines 1..33
      apps/systemtags/l10n/pt_PT.js on lines 1..33
      apps/systemtags/l10n/sv.js on lines 1..33
      apps/systemtags/l10n/zh_TW.js on lines 1..33
      core/l10n/fil.js on lines 1..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 158.

      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