owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

Method getAllNonUTF8BinTables has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getAllNonUTF8BinTables(IDBConnection $connection) {
        $dbPrefix = $this->config->getSystemValue("dbtableprefix");
        $dbName = $this->config->getSystemValue("dbname");
        $characterSet = $this->config->getSystemValue('mysql.utf8mb4', false) ? 'utf8mb4' : 'utf8';

Severity: Minor
Found in lib/private/Repair/Collation.php - About 1 hr to fix

    Method scale has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function scale($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) {
            $scalingUp = $this->getScalingUp();
            $maxScaleFactor = $this->getMaxScaleFactor();
    
            $factorX = $askedWidth / $previewWidth;
    Severity: Minor
    Found in lib/private/Preview.php - About 1 hr to fix

      Method getRawPathInfo has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getRawPathInfo() {
              $requestUri = $this->server['REQUEST_URI'] ?? '';
              // remove too many leading slashes - can be caused by reverse proxy configuration
              if (\strpos($requestUri, '/') === 0) {
                  $requestUri = '/' . \ltrim($requestUri, '/');
      Severity: Minor
      Found in lib/private/AppFramework/Http/Request.php - About 1 hr to fix

        Method processResources has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function processResources($routes) {
                // declaration of all restful actions
                $actions = [
                    ['name' => 'index', 'verb' => 'GET', 'on-collection' => true],
                    ['name' => 'show', 'verb' => 'GET'],
        Severity: Minor
        Found in lib/private/AppFramework/Routing/RouteConfig.php - About 1 hr to fix

          Method decrypt has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function decrypt($authenticatedCiphertext, $password = '') {
                  if ($password === '') {
                      $password = $this->config->getSystemValue('secret');
                  }
          
          
          Severity: Minor
          Found in lib/private/Security/Crypto.php - About 1 hr to fix

            Method signedRequestIsValid has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function signedRequestIsValid(): bool {
                    $params = $this->getQueryParameters();
                    if (!isset($params['OC-Signature'], $params['OC-Credential'], $params['OC-Date'], $params['OC-Expires'], $params['OC-Verb'])) {
                        $q = \json_encode($params);
                        \OC::$server->getLogger()->debug("Query parameters are missing: $q", ['app' => 'signed-url']);
            Severity: Minor
            Found in lib/private/Security/SignedUrl/Verifier.php - About 1 hr to fix

              Method printExceptionErrorPage has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function printExceptionErrorPage($exception, $fetchPage = false) {
                      try {
                          $trace = Log::replaceSensitiveData($exception->getTraceAsString());
              
                          $request = \OC::$server->getRequest();
              Severity: Minor
              Found in lib/private/legacy/template.php - About 1 hr to fix

                Method callForUsers has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function callForUsers($callback, $search, $onlySeen, $limit = null, $offset = null) {
                        $qb = $this->db->getQueryBuilder();
                        $qb->select(['*'])
                            ->from($this->getTableName());
                
                
                Severity: Minor
                Found in lib/private/User/AccountMapper.php - About 1 hr to fix

                  Method setLanguageFromRequest has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function setLanguageFromRequest($app = null) {
                          $header = $this->request->getHeader('ACCEPT_LANGUAGE');
                          if ($header) {
                              $available = $this->findAvailableLanguages($app);
                  
                  
                  Severity: Minor
                  Found in lib/private/L10N/Factory.php - About 1 hr to fix

                    Method findLanguage has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function findLanguage($app = null) {
                            if ($this->requestLanguage !== '' && $this->languageExists($app, $this->requestLanguage)) {
                                return $this->requestLanguage;
                            }
                    
                    
                    Severity: Minor
                    Found in lib/private/L10N/Factory.php - About 1 hr to fix

                      Method configure has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected function configure() {
                              parent::configure();
                      
                              $this
                                  ->setName('config:system:set')
                      Severity: Minor
                      Found in core/Command/Config/System/SetConfig.php - About 1 hr to fix

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

                        OC.L10N.register(
                            "files_sharing",
                            {
                            "Uploading..." : "பதிவேற்றல்...",
                            "Cancel" : "இரத்து செய்க",
                        Severity: Major
                        Found in apps/files_sharing/l10n/ta_LK.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "comments",
                            {
                            "Type in a new comment..." : "අලුත් අදහසක් දක්වන්න",
                            "Delete comment" : "අදහස මකන්න",
                        Severity: Major
                        Found in apps/comments/l10n/si.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "comments",
                            {
                            "Type in a new comment..." : "අලුත් අදහසක් දක්වන්න",
                            "Delete comment" : "අදහස මකන්න",
                        Severity: Major
                        Found in apps/comments/l10n/si_LK.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "federation",
                            {
                            "Server added to the list of trusted ownClouds" : "Server je dodan na popis povjerljivih ownCloud servera",
                            "Server is already in the list of trusted servers." : "Server već je na popisu povjerljivih servera.",
                        Severity: Major
                        Found in apps/federation/l10n/hr.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "dav",
                            {
                            "Contact birthdays" : "Geburtstage Deiner Kontakte",
                            "User unknown" : "Unbekannter Benutzer",
                        Severity: Major
                        Found in apps/dav/l10n/de_CH.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "federation",
                            {
                            "Server added to the list of trusted ownClouds" : "Máy chủ đã được thêm vào danh sách các máy chủ ownCloud tin tưởng",
                            "Server is already in the list of trusted servers." : "Máy chủ sẵn sàng trong danh sách các máy chủ tin tưởng",
                        Severity: Major
                        Found in apps/federation/l10n/vi.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "files_sharing",
                            {
                            "Cancel" : "Abbrechen",
                            "Invalid ownCloud url" : "Fehlerhafte ownCloud URL",
                        Severity: Major
                        Found in apps/files_sharing/l10n/nds.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "updatenotification",
                            {
                            "Update notifications" : "Paziņojumi par atjauninājumiem",
                            "{version} is available. Get more information on how to update." : "{version} ir pieejams. Uzziniet vairāk kā atjaunināt.",
                        Severity: Major
                        Found in apps/updatenotification/l10n/lv.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/hy.js on lines 1..13
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

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

                        OC.L10N.register(
                            "comments",
                            {
                            "Delete comment" : "Ջնջել մեկնաբանությունը",
                            "Cancel" : "Չեղարկել",
                        Severity: Major
                        Found in apps/comments/l10n/hy.js and 51 other locations - About 1 hr to fix
                        apps/comments/l10n/si.js on lines 1..13
                        apps/comments/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/af_ZA.js on lines 1..13
                        apps/dav/l10n/ar.js on lines 1..13
                        apps/dav/l10n/bg_BG.js on lines 1..13
                        apps/dav/l10n/cs_CZ.js on lines 1..13
                        apps/dav/l10n/de.js on lines 1..13
                        apps/dav/l10n/de_CH.js on lines 1..13
                        apps/dav/l10n/de_DE.js on lines 1..13
                        apps/dav/l10n/el.js on lines 1..13
                        apps/dav/l10n/en_GB.js on lines 1..13
                        apps/dav/l10n/es.js on lines 1..13
                        apps/dav/l10n/fr.js on lines 1..13
                        apps/dav/l10n/gl.js on lines 1..13
                        apps/dav/l10n/he.js on lines 1..13
                        apps/dav/l10n/hu_HU.js on lines 1..13
                        apps/dav/l10n/id.js on lines 1..13
                        apps/dav/l10n/it.js on lines 1..13
                        apps/dav/l10n/ko.js on lines 1..13
                        apps/dav/l10n/lt_LT.js on lines 1..13
                        apps/dav/l10n/pl.js on lines 1..13
                        apps/dav/l10n/pl_PL.js on lines 1..13
                        apps/dav/l10n/pt_BR.js on lines 1..13
                        apps/dav/l10n/pt_PT.js on lines 1..13
                        apps/dav/l10n/ru.js on lines 1..13
                        apps/dav/l10n/ru_RU.js on lines 1..13
                        apps/dav/l10n/si.js on lines 1..13
                        apps/dav/l10n/si_LK.js on lines 1..13
                        apps/dav/l10n/sq.js on lines 1..13
                        apps/dav/l10n/sv.js on lines 1..13
                        apps/dav/l10n/th_TH.js on lines 1..13
                        apps/dav/l10n/tr.js on lines 1..13
                        apps/dav/l10n/ug.js on lines 1..13
                        apps/dav/l10n/zh_CN.js on lines 1..13
                        apps/dav/l10n/zh_TW.js on lines 1..13
                        apps/federation/l10n/hr.js on lines 1..13
                        apps/federation/l10n/vi.js on lines 1..13
                        apps/files/l10n/te.js on lines 1..13
                        apps/files/l10n/tr_TR.js on lines 1..13
                        apps/files_external/l10n/bn_IN.js on lines 1..13
                        apps/files_external/l10n/es_ES.js on lines 1..13
                        apps/files_external/l10n/ku_IQ.js on lines 1..13
                        apps/files_sharing/l10n/hi.js on lines 1..13
                        apps/files_sharing/l10n/nds.js on lines 1..13
                        apps/files_sharing/l10n/ta_LK.js on lines 1..13
                        apps/files_sharing/l10n/ur_PK.js on lines 1..13
                        apps/files_versions/l10n/ru_RU.js on lines 1..13
                        apps/updatenotification/l10n/lv.js on lines 1..13
                        core/l10n/sv_SE.js on lines 1..13
                        lib/l10n/hi.js on lines 1..13
                        settings/l10n/my_MM.js on lines 1..13

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

                        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