owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

File RequestHandlerController.php has 278 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
 * @author Björn Schießle <bjoern@schiessle.org>
 * @author Joas Schilling <coding@schilljs.com>
Severity: Minor
Found in apps/federatedfilesharing/lib/Controller/RequestHandlerController.php - About 2 hrs to fix

    UsersController has 24 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class UsersController extends Controller {
        /** @var IL10N */
        private $l10n;
        /** @var Session */
        private $userSession;
    Severity: Minor
    Found in settings/Controller/UsersController.php - About 2 hrs to fix

      DBConfigService has 24 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class DBConfigService {
          public const MOUNT_TYPE_ADMIN = 1;
          public const MOUNT_TYPE_PERSONAl = 2;
      
          public const APPLICABLE_TYPE_GLOBAL = 1;
      Severity: Minor
      Found in lib/private/Files/External/Service/DBConfigService.php - About 2 hrs to fix

        RepairMimeTypes has 24 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class RepairMimeTypes implements IRepairStep {
            /**
             * @var \OCP\IConfig
             */
            protected $config;
        Severity: Minor
        Found in lib/private/Repair/RepairMimeTypes.php - About 2 hrs to fix

          ContentSecurityPolicy has 24 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy {
              /**
               * @return boolean
               */
              public function isInlineScriptAllowed() {
          Severity: Minor
          Found in lib/private/Security/CSP/ContentSecurityPolicy.php - About 2 hrs to fix

            Comment has 24 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Comment implements IComment {
                protected array $data = [
                    'id'              => '',
                    'parentId'        => '0',
                    'topmostParentId' => '0',
            Severity: Minor
            Found in lib/private/Comments/Comment.php - About 2 hrs to fix

              Manager has 24 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Manager implements ICommentsManager {
                  use EventEmitterTrait;
                  /** @var  IDBConnection */
                  protected $dbConn;
              
              
              Severity: Minor
              Found in lib/private/Comments/Manager.php - About 2 hrs to fix

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

                OC.L10N.register(
                    "comments",
                    {
                    "Type in a new comment..." : "សរសេរ​មតិ​ថ្មី​មួយ...",
                    "Delete comment" : "លុប​មតិ​ចោល",
                Severity: Major
                Found in apps/comments/l10n/km.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "files_trashbin",
                    {
                    "Couldn't delete %s permanently" : "Ne mogu zauvek da obrišem %s",
                    "Couldn't restore %s" : "Ne mogu da vratim %s",
                Severity: Major
                Found in apps/files_trashbin/l10n/sr@latin.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "systemtags",
                    {
                    "Tags" : "Ознаке",
                    "Tagged files" : "Означени фајлови",
                Severity: Major
                Found in apps/systemtags/l10n/sr.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "settings",
                    {
                    "Delete" : "తొలగించు",
                    "Language" : "భాష",
                Severity: Major
                Found in settings/l10n/te.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "federatedfilesharing",
                    {
                    "Federated sharing" : "Здружено дељење",
                    "Loading..." : "Учитавам...",
                Severity: Major
                Found in apps/federatedfilesharing/l10n/sr.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "systemtags",
                    {
                    "Tags" : "برچسب‌ها",
                    "Tagged files" : "فایل‌های برچسب زده شده",
                Severity: Major
                Found in apps/systemtags/l10n/fa.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "updatenotification",
                    {
                    "Update notifications" : "Notificaciones d'anovamientu",
                    "{version} is available. Get more information on how to update." : "{version} ta disponible. Consigui más información en cómo anovar·",
                Severity: Major
                Found in apps/updatenotification/l10n/ast.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "files_sharing",
                    {
                    "Uploading..." : "Incargante...",
                    "Cancel" : "Cancellar",
                Severity: Major
                Found in apps/files_sharing/l10n/ia.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "files_trashbin",
                    {
                    "Couldn't delete %s permanently" : "No se puede eliminar %s permanentemente",
                    "Couldn't restore %s" : "No se puede restaurar %s",
                Severity: Major
                Found in apps/files_trashbin/l10n/es_MX.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "federatedfilesharing",
                    {
                    "Loading..." : "Завантаження...",
                    "Invalid Federated Cloud ID" : "Неправильний Об'єднаний Хмарний Ідентіфікатор ",
                Severity: Major
                Found in apps/federatedfilesharing/l10n/uk.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "files_trashbin",
                    {
                    "Couldn't delete %s permanently" : "Nun pudo desaniciase %s dafechu",
                    "Couldn't restore %s" : "Nun pudo restaurase %s",
                Severity: Major
                Found in apps/files_trashbin/l10n/ast.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "updatenotification",
                    {
                    "Update notifications" : "Notificacions de mesas a jorn",
                    "{version} is available. Get more information on how to update." : "La version {version} es disponibla. Obtenètz mai d'informacions a prepaus d'aquesta mesa a jorn.",
                Severity: Major
                Found in apps/updatenotification/l10n/oc.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files/l10n/ta_IN.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "files",
                    {
                    "Files" : "கோப்புகள்",
                    "Details" : "விவரங்கள்",
                Severity: Major
                Found in apps/files/l10n/ta_IN.js and 12 other locations - About 2 hrs to fix
                apps/comments/l10n/km.js on lines 1..19
                apps/federatedfilesharing/l10n/sr.js on lines 1..19
                apps/federatedfilesharing/l10n/uk.js on lines 1..19
                apps/files_sharing/l10n/ia.js on lines 1..19
                apps/files_trashbin/l10n/ast.js on lines 1..19
                apps/files_trashbin/l10n/es_MX.js on lines 1..19
                apps/files_trashbin/l10n/sr@latin.js on lines 1..19
                apps/systemtags/l10n/fa.js on lines 1..19
                apps/systemtags/l10n/sr.js on lines 1..19
                apps/updatenotification/l10n/ast.js on lines 1..19
                apps/updatenotification/l10n/oc.js on lines 1..19
                settings/l10n/te.js on lines 1..19

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

                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