owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

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

    public function __construct(
        $appName,
        IRequest $request,
        IAvatarManager $avatarManager,
        File $cache,
Severity: Major
Found in core/Controller/AvatarController.php and 4 other locations - About 2 hrs to fix
apps/federatedfilesharing/lib/Controller/OcmController.php on lines 96..116
apps/files_sharing/lib/Controller/NotificationController.php on lines 54..73
apps/updatenotification/lib/Controller/AdminController.php on lines 67..86
core/Controller/LoginController.php on lines 76..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 140.

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

    public function __construct(
        string $appName,
        IRequest $request,
        MailNotifications $mailNotifications,
        IUserSession $userSession,
apps/federatedfilesharing/lib/Controller/OcmController.php on lines 96..116
apps/updatenotification/lib/Controller/AdminController.php on lines 67..86
core/Controller/AvatarController.php on lines 85..105
core/Controller/LoginController.php on lines 76..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 140.

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

    public function __construct(
        $appName,
        IRequest $request,
        OcmMiddleware $ocmMiddleware,
        IURLGenerator $urlGenerator,
Severity: Major
Found in apps/federatedfilesharing/lib/Controller/OcmController.php and 4 other locations - About 2 hrs to fix
apps/files_sharing/lib/Controller/NotificationController.php on lines 54..73
apps/updatenotification/lib/Controller/AdminController.php on lines 67..86
core/Controller/AvatarController.php on lines 85..105
core/Controller/LoginController.php on lines 76..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 140.

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

    public function __construct(
        $appName,
        IRequest $request,
        IUserManager $userManager,
        IConfig $config,
Severity: Major
Found in core/Controller/LoginController.php and 4 other locations - About 2 hrs to fix
apps/federatedfilesharing/lib/Controller/OcmController.php on lines 96..116
apps/files_sharing/lib/Controller/NotificationController.php on lines 54..73
apps/updatenotification/lib/Controller/AdminController.php on lines 67..86
core/Controller/AvatarController.php on lines 85..105

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

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 getSubAdminsGroups(IUser $user) {
        $qb = $this->dbConn->getQueryBuilder();

        $result = $qb->select('gid')
            ->from('group_admin')
Severity: Major
Found in lib/private/SubAdmin.php and 1 other location - About 2 hrs to fix
lib/private/SubAdmin.php on lines 152..170

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

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 getGroupsSubAdmins(IGroup $group) {
        $qb = $this->dbConn->getQueryBuilder();

        $result = $qb->select('uid')
            ->from('group_admin')
Severity: Major
Found in lib/private/SubAdmin.php and 1 other location - About 2 hrs to fix
lib/private/SubAdmin.php on lines 127..145

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

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

OC.L10N.register(
    "core",
    {
    "Please select a file." : "Per favor, selige un file.",
    "File is too big" : "Le file es troppo grande",
Severity: Minor
Found in core/l10n/ia.js - About 2 hrs to fix

    File AppRegistryController.php has 288 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * @author Thomas Müller <thomas.mueller@tmit.eu>
     *
     * @copyright Copyright (c) 2023, ownCloud GmbH
    Severity: Minor
    Found in core/Controller/AppRegistryController.php - About 2 hrs to fix

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "إشعارات التحديث",
          "{version} is available. Get more information on how to update." : "{version} متوفر. احصل على مزيد من المعلومات عن كيفية التحديث.",
      Severity: Major
      Found in apps/updatenotification/l10n/ar.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Uppdateringsnotifieringar",
          "{version} is available. Get more information on how to update." : "{version} är tillgänglig. Få mer information om hur du uppdaterar.",
      Severity: Major
      Found in apps/updatenotification/l10n/sv.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Notificacións de actualización",
          "{version} is available. Get more information on how to update." : "{version} está dispoñíbel. Obteña máis información sobre como actualizar.",
      Severity: Major
      Found in apps/updatenotification/l10n/gl.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "files_external",
          {
          "Personal" : "தனிப்பட்ட",
          "Grant access" : "அனுமதியை வழங்கல்",
      Severity: Major
      Found in apps/files_external/l10n/ta_LK.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "files_external",
          {
          "Personal" : "தனிப்பட்ட",
          "Grant access" : "அனுமதியை வழங்கல்",
      Severity: Major
      Found in apps/files_external/l10n/ta.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "files_trashbin",
          {
          "Couldn't delete %s permanently" : "Ne povis foriĝi %s por ĉiam",
          "Couldn't restore %s" : "Ne povis restaŭriĝi %s",
      Severity: Major
      Found in apps/files_trashbin/l10n/eo.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Eguneraketa jakinarazpenak",
          "{version} is available. Get more information on how to update." : "{version} eskuragarri dago. Lortu nola eguneratzeari buruzko informazio gehiago.",
      Severity: Major
      Found in apps/updatenotification/l10n/eu.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Сповіщення про оновлення",
          "{version} is available. Get more information on how to update." : "{version} доступна. Отримати більш детальну інформацію про те, як оновити.",
      Severity: Major
      Found in apps/updatenotification/l10n/uk.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Atnaujinti pranešimus",
          "{version} is available. Get more information on how to update." : "{version} jau išleista. Sužinokite daugiau kaip atnaujinti.",
      Severity: Major
      Found in apps/updatenotification/l10n/lt_LT.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Powiadomienia o aktualizacji",
          "{version} is available. Get more information on how to update." : "Wersja {version} jest dostępna. Dowiedz się jak zaktualizować.",
      Severity: Major
      Found in apps/updatenotification/l10n/pl.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "updatenotification",
          {
          "Update notifications" : "Notificaciones de actualización",
          "{version} is available. Get more information on how to update." : "{version} está disponible. Obtener más información sobre cómo actualizar.",
      Severity: Major
      Found in apps/updatenotification/l10n/es_MX.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/si_LK.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

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

      OC.L10N.register(
          "files_external",
          {
          "Personal" : "පෞද්ගලික",
          "Grant access" : "පිවිසුම ලබාදෙන්න",
      Severity: Major
      Found in apps/files_external/l10n/si_LK.js and 42 other locations - About 2 hrs to fix
      apps/comments/l10n/eo.js on lines 1..20
      apps/comments/l10n/sr.js on lines 1..20
      apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
      apps/files/l10n/nds.js on lines 1..20
      apps/files_external/l10n/ta.js on lines 1..20
      apps/files_external/l10n/ta_LK.js on lines 1..20
      apps/files_sharing/l10n/de_AT.js on lines 1..20
      apps/files_trashbin/l10n/eo.js on lines 1..20
      apps/updatenotification/l10n/af_ZA.js on lines 1..20
      apps/updatenotification/l10n/ar.js on lines 1..20
      apps/updatenotification/l10n/bg_BG.js on lines 1..20
      apps/updatenotification/l10n/ca.js on lines 1..20
      apps/updatenotification/l10n/cs_CZ.js on lines 1..20
      apps/updatenotification/l10n/da.js on lines 1..20
      apps/updatenotification/l10n/de_CH.js on lines 1..20
      apps/updatenotification/l10n/el.js on lines 1..20
      apps/updatenotification/l10n/es.js on lines 1..20
      apps/updatenotification/l10n/es_MX.js on lines 1..20
      apps/updatenotification/l10n/eu.js on lines 1..20
      apps/updatenotification/l10n/fi_FI.js on lines 1..20
      apps/updatenotification/l10n/fr.js on lines 1..20
      apps/updatenotification/l10n/gl.js on lines 1..20
      apps/updatenotification/l10n/he.js on lines 1..20
      apps/updatenotification/l10n/hu_HU.js on lines 1..20
      apps/updatenotification/l10n/is.js on lines 1..20
      apps/updatenotification/l10n/it.js on lines 1..20
      apps/updatenotification/l10n/ja.js on lines 1..20
      apps/updatenotification/l10n/ko.js on lines 1..20
      apps/updatenotification/l10n/lt_LT.js on lines 1..20
      apps/updatenotification/l10n/mk.js on lines 1..20
      apps/updatenotification/l10n/nb_NO.js on lines 1..20
      apps/updatenotification/l10n/nn_NO.js on lines 1..20
      apps/updatenotification/l10n/pl.js on lines 1..20
      apps/updatenotification/l10n/pt_PT.js on lines 1..20
      apps/updatenotification/l10n/sl.js on lines 1..20
      apps/updatenotification/l10n/sv.js on lines 1..20
      apps/updatenotification/l10n/th_TH.js on lines 1..20
      apps/updatenotification/l10n/uk.js on lines 1..20
      apps/updatenotification/l10n/zh_CN.js on lines 1..20
      apps/updatenotification/l10n/zh_TW.js on lines 1..20
      core/l10n/bn_IN.js on lines 1..20
      lib/l10n/de_AT.js on lines 1..20

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

      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