owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

Function resampleHermite has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        var resampleHermite = function (canvas, W, H, W2, H2) {
            W2 = Math.round(W2);
            H2 = Math.round(H2);
            var img = canvas.getContext("2d").getImageData(0, 0, W, H);
            var img2 = canvas.getContext("2d").getImageData(0, 0, W2, H2);
Severity: Major
Found in core/js/oc-dialogs.js - About 2 hrs to fix

    Method formatUserForIndex has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function formatUserForIndex(IUser $user, array $userGroups = null) {
            // TODO: eliminate this encryption specific code below and somehow
            // hook in additional user info from other apps
    
            // recovery isn't possible if admin or user has it disabled and encryption
    Severity: Major
    Found in settings/Controller/UsersController.php - About 2 hrs to fix

      Method listApps has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function listApps($category = '') {
              if ($category === '') {
                  $category = 'enabled';
              }
              switch ($category) {
      Severity: Major
      Found in settings/Controller/AppSettingsController.php - About 2 hrs to fix

        Method run has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function run($argument) {
                $target = $argument['url'];
                $source = $this->urlGenerator->getAbsoluteURL('/');
                $source = \rtrim($source, '/');
                $token = $argument['token'];
        Severity: Major
        Found in apps/federation/lib/BackgroundJob/GetSharedSecret.php - About 2 hrs to fix

          Method auth has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function auth(RequestInterface $request, ResponseInterface $response) {
                  $forcedLogout = false;
                  if (!$this->request->passesCSRFCheck() &&
                      $this->requiresCSRFCheck()) {
                      // In case of a fail with POST we need to recheck the credentials
          Severity: Major
          Found in apps/dav/lib/Connector/Sabre/Auth.php - About 2 hrs to fix

            Method checkAppsIntegrity has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function checkAppsIntegrity($data, $extractDir, $path, $isShipped = false) {
                    $l = \OC::$server->getL10N('lib');
                    //load the info.xml file of the app
                    if (!\is_file($extractDir.'/appinfo/info.xml')) {
                        //try to find it in a subdir
            Severity: Major
            Found in lib/private/Installer.php - About 2 hrs to fix

              Method sendEmail has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function sendEmail($user, $token, $link) {
                      if ($this->userManager->userExists($user)) {
                          $userObject = $this->userManager->get($user);
                          $email = $userObject->getEMailAddress();
              
              
              Severity: Major
              Found in core/Controller/LostController.php - About 2 hrs to fix

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

                OC.L10N.register(
                    "federatedfilesharing",
                    {
                    "Loading..." : "Laadimine ...",
                    "Sharing %s failed, because this item is already shared with %s" : "%s jagamine ebaõnnestus, kuna see üksus on juba jagatud %s",
                Severity: Major
                Found in apps/federatedfilesharing/l10n/et_EE.js and 12 other locations - About 2 hrs to fix
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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/mk.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

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

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

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

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

                Refactorings

                Further Reading

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

                OC.L10N.register(
                    "files_external",
                    {
                    "Personal" : "ವೈಯಕ್ತಿಕ",
                    "Saved" : "ಉಳಿಸಿದ",
                Severity: Major
                Found in apps/files_external/l10n/kn.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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(
                    "core",
                    {
                    "Settings" : "Ustawienia",
                    "Cancel" : "Anuluj",
                Severity: Major
                Found in core/l10n/pl_PL.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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" : "Tunnisteet",
                    "Tagged files" : "Tunnisteella merkityt tiedostot",
                Severity: Major
                Found in apps/systemtags/l10n/fi_FI.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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",
                    {
                    "Shared by link" : "通過連結分享<br>",
                    "Cancel" : "取消",
                Severity: Major
                Found in apps/files_sharing/l10n/zh_HK.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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" : "Uuenduste teavitused",
                    "{version} is available. Get more information on how to update." : "{version} on saadaval. Vaata lisainfot uuendamise kohta.",
                Severity: Major
                Found in apps/updatenotification/l10n/et_EE.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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",
                    {
                    "Email sent" : "ईमेल भेज दिया गया है ",
                    "Delete" : "हटाना",
                Severity: Major
                Found in settings/l10n/hi.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17

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

                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" : "Actualizar notificaciones",
                    "{version} is available. Get more information on how to update." : "{version} está disponible. Obtenga más información sobre cómo actualizar.",
                Severity: Major
                Found in apps/updatenotification/l10n/es_AR.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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",
                    {
                    "All files" : "Todos los archivos",
                    "Close" : "Cerrar",
                Severity: Major
                Found in apps/files/l10n/es_ES.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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",
                    {
                    "Shared by link" : "Podijeljeno putem linka",
                    "Cancel" : "Odustani",
                Severity: Major
                Found in apps/files_sharing/l10n/bs.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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",
                    {
                    "Unknown error" : "ਅਣਜਾਣ ਗਲਤੀ",
                    "All files" : "ਸਾਰੀਆਂ ਫਾਈਲਾਂ",
                Severity: Major
                Found in apps/files/l10n/pa.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pl_PL.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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",
                    {
                    "All files" : "Wszystkie pliki",
                    "Close" : "Zamknij",
                Severity: Major
                Found in apps/files/l10n/pl_PL.js and 12 other locations - About 2 hrs to fix
                apps/federatedfilesharing/l10n/et_EE.js on lines 1..17
                apps/files/l10n/es_ES.js on lines 1..17
                apps/files/l10n/pa.js on lines 1..17
                apps/files_external/l10n/kn.js on lines 1..17
                apps/files_sharing/l10n/bs.js on lines 1..17
                apps/files_sharing/l10n/zh_HK.js on lines 1..17
                apps/systemtags/l10n/fi_FI.js on lines 1..17
                apps/systemtags/l10n/mk.js on lines 1..17
                apps/updatenotification/l10n/es_AR.js on lines 1..17
                apps/updatenotification/l10n/et_EE.js on lines 1..17
                core/l10n/pl_PL.js on lines 1..17
                settings/l10n/hi.js on lines 1..17

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

                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