owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

Consider simplifying this complex logical expression.
Open

                    if (
                        params.code !== undefined
                        && typeof client_id === "string"
                        && client_id !== ''
                        && typeof client_secret === "string"
Severity: Major
Found in apps/files_external/js/oauth2.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if (
                !/^focus./.test(type) || (
                    toElement === undefined &&
                    originalEvent.fromElement === undefined &&
                    originalEvent.relatedTarget === undefined
    Severity: Major
    Found in apps/files/js/jquery-visibility.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {
                  params.data = options.attrs || model.toJSON(options);
              }
      Severity: Major
      Found in core/js/oc-backbone-webdav.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                        if ((event.ctrlKey || event.metaKey) && // Ctrl or Command (OSX)
                            !event.shiftKey &&
                            event.keyCode === 70 && // F
                            self.hasFilter(getCurrentApp()) && // Search is enabled
                            !$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
        Severity: Major
        Found in core/search/js/search.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if (!$foundRemoteById && \substr_count($search, '@') >= 1
                      && $this->offset === 0 && $this->userSearch->isSearchable($search)
                      // if an exact local user is found, only keep the remote entry if
                      // its domain does not match the trusted domains
                      // (if it does, it is a user whose local login domain matches the ownCloud
          Severity: Major
          Found in apps/files_sharing/lib/Controller/ShareesController.php - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                    if (
                        $mode === 'w'
                        || $mode === 'w+'
                        || $mode === 'wb'
                        || $mode === 'wb+'
            Severity: Major
            Found in lib/private/Files/Stream/Encryption.php - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                              if (($fileSharing && $item['file_source'] === $r['file_source'] && $item['file_target'] === $r['file_target']) ||
                                  (!$fileSharing && $item['item_source'] === $r['item_source'] && $item['item_target'] === $r['item_target'])) {
                                  // add the first item to the list of grouped shares
                                  if (!isset($result[$key]['grouped'])) {
                                      $result[$key]['grouped'][] = $result[$key];
              Severity: Major
              Found in lib/private/Share/Share.php - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                                if ($includeCollections && $collectionTypes && $row['item_type'] !== 'folder' && \in_array($row['item_type'], $collectionTypes)) {
                                    if (($collectionBackend = self::getBackend($row['item_type']))
                                        && $collectionBackend instanceof \OCP\Share_Backend_Collection) {
                                        // Collections can be inside collections, check if the item is a collection
                                        if (isset($item) && $row['item_type'] == $itemType && $row[$column] == $item) {
                Severity: Major
                Found in lib/private/Share/Share.php - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (($type === 'bool' || $type === 'boolean') &&
                                  $value === 'false' &&
                                  (
                                      $this->request->method === 'GET' ||
                                      \strpos(
                  Severity: Major
                  Found in lib/private/AppFramework/Http/Dispatcher.php - About 40 mins to fix

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

                    OC.L10N.register(
                        "dav",
                        {
                        "Contact birthdays" : "Geburtstage Deiner Kontakte",
                        "Personal" : "Persönlich",
                    Severity: Major
                    Found in apps/dav/l10n/de_AT.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "lib",
                        {
                        "today" : "Сёння",
                        "yesterday" : "Ўчора",
                    Severity: Major
                    Found in lib/l10n/be.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "dav",
                        {
                        "Contact birthdays" : "kontaktuen urtebetetze datak",
                        "Personal" : "Pertsonala",
                    Severity: Major
                    Found in apps/dav/l10n/eu.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "dav",
                        {
                        "Contact birthdays" : "Kontakti sünnipäevad",
                        "Personal" : "Isiklik",
                    Severity: Major
                    Found in apps/dav/l10n/et_EE.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "dav",
                        {
                        "Contact birthdays" : "Рођендани контаката",
                        "Personal" : "Лично",
                    Severity: Major
                    Found in apps/dav/l10n/sr.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "systemtags",
                        {
                        "Tags" : "Emneord",
                        "No files in here" : "Inga fil her",
                    Severity: Major
                    Found in apps/systemtags/l10n/nn_NO.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "files_sharing",
                        {
                        "Cancel" : "لابردن",
                        "Add" : "زیادکردن",
                    Severity: Major
                    Found in apps/files_sharing/l10n/ku_IQ.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "dav",
                        {
                        "Contact birthdays" : "Cumpleaños de los contactos",
                        "Personal" : "Personal",
                    Severity: Major
                    Found in apps/dav/l10n/es_MX.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "settings",
                        {
                        "Delete" : "Usuń",
                        "Save" : "Zapisz",
                    Severity: Major
                    Found in settings/l10n/pl_PL.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11

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

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

                    OC.L10N.register(
                        "systemtags",
                        {
                        "Tags" : "Značky",
                        "No files in here" : "Nie sú tu žiadne súbory",
                    Severity: Major
                    Found in apps/systemtags/l10n/sk_SK.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/lo.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

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

                    OC.L10N.register(
                        "dav",
                        {
                        "Contact birthdays" : "ຕິດຕໍ່ວັນເກີດ",
                        "Personal" : "ສ່ວນບຸກຄົນ",
                    Severity: Major
                    Found in apps/dav/l10n/lo.js and 32 other locations - About 40 mins to fix
                    apps/dav/l10n/ca.js on lines 1..11
                    apps/dav/l10n/de_AT.js on lines 1..11
                    apps/dav/l10n/eo.js on lines 1..11
                    apps/dav/l10n/es_AR.js on lines 1..11
                    apps/dav/l10n/es_MX.js on lines 1..11
                    apps/dav/l10n/et_EE.js on lines 1..11
                    apps/dav/l10n/eu.js on lines 1..11
                    apps/dav/l10n/fa.js on lines 1..11
                    apps/dav/l10n/gu.js on lines 1..11
                    apps/dav/l10n/hr.js on lines 1..11
                    apps/dav/l10n/ia.js on lines 1..11
                    apps/dav/l10n/lb.js on lines 1..11
                    apps/dav/l10n/mk.js on lines 1..11
                    apps/dav/l10n/nn_NO.js on lines 1..11
                    apps/dav/l10n/sr.js on lines 1..11
                    apps/federation/l10n/eo.js on lines 1..11
                    apps/files_external/l10n/pa.js on lines 1..11
                    apps/files_sharing/l10n/ku_IQ.js on lines 1..11
                    apps/files_sharing/l10n/ml_IN.js on lines 1..11
                    apps/files_sharing/l10n/ta_IN.js on lines 1..11
                    apps/systemtags/l10n/az.js on lines 1..11
                    apps/systemtags/l10n/es_AR.js on lines 1..11
                    apps/systemtags/l10n/hy.js on lines 1..11
                    apps/systemtags/l10n/id.js on lines 1..11
                    apps/systemtags/l10n/lv.js on lines 1..11
                    apps/systemtags/l10n/nn_NO.js on lines 1..11
                    apps/systemtags/l10n/sk_SK.js on lines 1..11
                    apps/systemtags/l10n/sr@latin.js on lines 1..11
                    core/l10n/mr.js on lines 1..11
                    lib/l10n/be.js on lines 1..11
                    lib/l10n/es_ES.js on lines 1..11
                    settings/l10n/pl_PL.js on lines 1..11

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

                    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