owncloud/core

View on GitHub

Showing 12,701 of 12,701 total issues

Method __construct has 13390 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public function __construct(Google_Client $client, $rootUrl = null)
  {
    parent::__construct($client);
    $this->rootUrl = $rootUrl ?: 'https://compute.googleapis.com/';
    $this->servicePath = 'compute/v1/projects/';

    File Compute.php has 13483 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /*
     * Copyright 2014 Google Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License"); you may not

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

      <?php
      /*
       * Copyright 2014 Google Inc.
       *
       * Licensed under the Apache License, Version 2.0 (the "License"); you may not
      apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SASPortalTesting.php on lines 1..1002

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

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

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

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

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

      Refactorings

      Further Reading

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

      <?php
      /*
       * Copyright 2014 Google Inc.
       *
       * Licensed under the Apache License, Version 2.0 (the "License"); you may not
      apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Sasportal.php on lines 1..1002

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

      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

      Method __construct has 4704 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        public function __construct(Google_Client $client, $rootUrl = null)
        {
          parent::__construct($client);
          $this->rootUrl = $rootUrl ?: 'https://dfareporting.googleapis.com/';
          $this->servicePath = 'dfareporting/v3.4/';

        Method __construct has 2848 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          public function __construct(Google_Client $client, $rootUrl = null)
          {
            parent::__construct($client);
            $this->rootUrl = $rootUrl ?: 'https://apigee.googleapis.com/';
            $this->servicePath = '';

          File Dfareporting.php has 4780 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /*
           * Copyright 2014 Google Inc.
           *
           * Licensed under the Apache License, Version 2.0 (the "License"); you may not

            Method __construct has 2560 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              public function __construct(Google_Client $client, $rootUrl = null)
              {
                parent::__construct($client);
                $this->rootUrl = $rootUrl ?: 'https://displayvideo.googleapis.com/';
                $this->servicePath = '';

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "O contrasinal actual é incorrecto",
                  "The new password cannot be the same as the previous one" : "O novo contrasinal non pode ser o mesmo que o anterior",
              Severity: Major
              Found in settings/l10n/gl.js and 5 other locations - About 1 wk to fix
              settings/l10n/ar.js on lines 1..393
              settings/l10n/de.js on lines 1..393
              settings/l10n/de_DE.js on lines 1..393
              settings/l10n/sq.js on lines 1..393
              settings/l10n/th_TH.js on lines 1..393

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

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "Falsches aktuelles Passwort",
                  "The new password cannot be the same as the previous one" : "Das neue Passwort kann nicht das gleiche sein wie das alte",
              Severity: Major
              Found in settings/l10n/de_DE.js and 5 other locations - About 1 wk to fix
              settings/l10n/ar.js on lines 1..393
              settings/l10n/de.js on lines 1..393
              settings/l10n/gl.js on lines 1..393
              settings/l10n/sq.js on lines 1..393
              settings/l10n/th_TH.js on lines 1..393

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

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "Fjalëkalim i tanishëm i gabuar",
                  "The new password cannot be the same as the previous one" : "Fjalëkalimi i ri s’mund të jetë i njëjtë me atë të mëparshmin",
              Severity: Major
              Found in settings/l10n/sq.js and 5 other locations - About 1 wk to fix
              settings/l10n/ar.js on lines 1..393
              settings/l10n/de.js on lines 1..393
              settings/l10n/de_DE.js on lines 1..393
              settings/l10n/gl.js on lines 1..393
              settings/l10n/th_TH.js on lines 1..393

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

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "Das aktuelle Passwort ist falsch.",
                  "The new password cannot be the same as the previous one" : "Das neue Passwort kann nicht identisch zum alten Passwort sein.",
              Severity: Major
              Found in settings/l10n/de.js and 5 other locations - About 1 wk to fix
              settings/l10n/ar.js on lines 1..393
              settings/l10n/de_DE.js on lines 1..393
              settings/l10n/gl.js on lines 1..393
              settings/l10n/sq.js on lines 1..393
              settings/l10n/th_TH.js on lines 1..393

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

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "รหัสผ่านปัจจุบันไม่ถูกต้อง",
                  "The new password cannot be the same as the previous one" : "รหัสผ่านใหม่ต้องไม่ซ้ำกับรหัสเดิมที่เคยใช้มาก่อน",
              Severity: Major
              Found in settings/l10n/th_TH.js and 5 other locations - About 1 wk to fix
              settings/l10n/ar.js on lines 1..393
              settings/l10n/de.js on lines 1..393
              settings/l10n/de_DE.js on lines 1..393
              settings/l10n/gl.js on lines 1..393
              settings/l10n/sq.js on lines 1..393

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

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "كلمة المرور الحالية خاطئة",
                  "The new password cannot be the same as the previous one" : "لا يمكن أن تكون كلمة المرور الجديدة نفس كلمة المرور القديمة",
              Severity: Major
              Found in settings/l10n/ar.js and 5 other locations - About 1 wk to fix
              settings/l10n/de.js on lines 1..393
              settings/l10n/de_DE.js on lines 1..393
              settings/l10n/gl.js on lines 1..393
              settings/l10n/sq.js on lines 1..393
              settings/l10n/th_TH.js on lines 1..393

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

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

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

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

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

              Refactorings

              Further Reading

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "Şimdiki parola yanlış",
                  "The new password cannot be the same as the previous one" : "Yeni parola eskisiyle aynı olamaz",
              Severity: Major
              Found in settings/l10n/tr.js and 4 other locations - About 1 wk to fix
              settings/l10n/he.js on lines 1..392
              settings/l10n/pt_BR.js on lines 1..392
              settings/l10n/ru.js on lines 1..392
              settings/l10n/zh_TW.js on lines 1..392

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

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

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

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

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

              Refactorings

              Further Reading

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "Старый пароль неверен",
                  "The new password cannot be the same as the previous one" : "Новый пароль не совпадать с предыдущим",
              Severity: Major
              Found in settings/l10n/ru.js and 4 other locations - About 1 wk to fix
              settings/l10n/he.js on lines 1..392
              settings/l10n/pt_BR.js on lines 1..392
              settings/l10n/tr.js on lines 1..392
              settings/l10n/zh_TW.js on lines 1..392

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

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

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

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

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

              Refactorings

              Further Reading

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "Senha atual incorreta",
                  "The new password cannot be the same as the previous one" : "A nova senha não pode ser a mesma que a anterior",
              Severity: Major
              Found in settings/l10n/pt_BR.js and 4 other locations - About 1 wk to fix
              settings/l10n/he.js on lines 1..392
              settings/l10n/ru.js on lines 1..392
              settings/l10n/tr.js on lines 1..392
              settings/l10n/zh_TW.js on lines 1..392

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

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

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

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

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

              Refactorings

              Further Reading

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "當前密碼錯誤",
                  "The new password cannot be the same as the previous one" : "新密碼不能與上一個密碼重複.",
              Severity: Major
              Found in settings/l10n/zh_TW.js and 4 other locations - About 1 wk to fix
              settings/l10n/he.js on lines 1..392
              settings/l10n/pt_BR.js on lines 1..392
              settings/l10n/ru.js on lines 1..392
              settings/l10n/tr.js on lines 1..392

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

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

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

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

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

              Refactorings

              Further Reading

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

              OC.L10N.register(
                  "settings",
                  {
                  "Wrong current password" : "סיסמא נוכחית שגויה",
                  "The new password cannot be the same as the previous one" : "הסיסמא החדשה אינה יכולה להיות זהה לסיסמא הקודמת",
              Severity: Major
              Found in settings/l10n/he.js and 4 other locations - About 1 wk to fix
              settings/l10n/pt_BR.js on lines 1..392
              settings/l10n/ru.js on lines 1..392
              settings/l10n/tr.js on lines 1..392
              settings/l10n/zh_TW.js on lines 1..392

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

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

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

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

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

              Refactorings

              Further Reading

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

                  function &_getTables()
                  {
                      static $tables;
                      if (empty($tables)) {
                          // according to <http://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf#page=19> (section 5.2.1),
              apps/files_external/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php on lines 688..761

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

              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