owncloud/core

View on GitHub

Showing 3,235 of 4,503 total issues

File de_CH.js has 378 lines of code (exceeds 250 allowed). Consider refactoring.
Open

OC.L10N.register(
    "core",
    {
    "Please select a file." : "Bitte wähle eine Datei aus.",
    "File is too big" : "Datei ist zu gross",
Severity: Minor
Found in core/l10n/de_CH.js - About 5 hrs to fix

    File it.js has 378 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    OC.L10N.register(
        "core",
        {
        "Please select a file." : "Seleziona un file.",
        "File is too big" : "Il file è troppo grande",
    Severity: Minor
    Found in core/l10n/it.js - About 5 hrs to fix

      File ko.js has 376 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      OC.L10N.register(
          "core",
          {
          "Please select a file." : "파일을 선택하십시오.",
          "File is too big" : "파일이 너무 큼",
      Severity: Minor
      Found in core/l10n/ko.js - About 5 hrs to fix

        File ug.js has 376 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        OC.L10N.register(
            "core",
            {
            "Please select a file." : "بىر ھۆججەت تاللاڭ.",
            "File is too big" : "ھۆججەت بەك چوڭ",
        Severity: Minor
        Found in core/l10n/ug.js - About 5 hrs to fix

          File fa.js has 376 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          OC.L10N.register(
              "core",
              {
              "Please select a file." : "لطفا یک پرونده را انتخاب کنید.",
              "File is too big" : "فایل خیلی بزرگ است",
          Severity: Minor
          Found in core/l10n/fa.js - About 5 hrs to fix

            File fr.js has 375 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            OC.L10N.register(
                "core",
                {
                "Please select a file." : "Veuillez sélectionner un fichier.",
                "File is too big" : "Fichier trop volumineux",
            Severity: Minor
            Found in core/l10n/fr.js - About 5 hrs to fix

              CalDavBackend has 38 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class CalDavBackend extends AbstractBackend implements SyncSupport, SubscriptionSupport, SchedulingSupport {
                  /**
                   * We need to specify a max date, because we need to stop *somewhere*
                   *
                   * On 32 bit system the maximum for a signed integer is 2147483647, so
              Severity: Minor
              Found in apps/dav/lib/CalDAV/CalDavBackend.php - About 5 hrs to fix

                File es_AR.js has 374 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                OC.L10N.register(
                    "settings",
                    {
                    "Wrong current password" : "La contraseña actual es incorrecta",
                    "The new password cannot be the same as the previous one" : "La nueva contraseña no puede ser la misma que la anterior",
                Severity: Minor
                Found in settings/l10n/es_AR.js - About 5 hrs to fix

                  File User.php has 373 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
                   * @author Bart Visscher <bartv@thisnet.nl>
                   * @author Björn Schießle <bjoern@schiessle.org>
                  Severity: Minor
                  Found in lib/private/User/User.php - About 4 hrs to fix

                    Function initPaths has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public static function initPaths() {
                            if (\defined('PHPUNIT_CONFIG_DIR')) {
                                self::$configDir = OC::$SERVERROOT . '/' . PHPUNIT_CONFIG_DIR . '/';
                            } elseif (\defined('PHPUNIT_RUN') and PHPUNIT_RUN and \is_dir(OC::$SERVERROOT . '/tests/config/')) {
                                self::$configDir = OC::$SERVERROOT . '/tests/config/';
                    Severity: Minor
                    Found in lib/kernel.php - About 4 hrs to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function loadCommands has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function loadCommands(InputInterface $input, OutputInterface $output) {
                            // $application is required to be defined in the register_command scripts
                            $application = $this->application;
                            $inputDefinition = $application->getDefinition();
                            $inputDefinition->addOption(
                    Severity: Minor
                    Found in lib/private/Console/Application.php - About 4 hrs to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function getSharedWith has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function getSharedWith($userId, $shareType, $node, $limit, $offset) {
                            /** @var Share[] $shares */
                            $shares = [];
                    
                            if ($shareType === \OCP\Share::SHARE_TYPE_USER) {
                    Severity: Minor
                    Found in lib/private/Share20/DefaultShareProvider.php - About 4 hrs to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function transferShare has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function transferShare(IShare $share, $oldOwner, $newOwner, $finalTarget, $isChild = null) {
                            if ($this->userManager->get($oldOwner) === null) {
                                throw new TransferSharesException("The current owner of the share $oldOwner doesn't exist");
                            }
                            if ($this->userManager->get($newOwner) === null) {
                    Severity: Minor
                    Found in lib/private/Share20/Manager.php - About 4 hrs to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    File el.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    OC.L10N.register(
                        "core",
                        {
                        "Please select a file." : "Παρακαλώ επιλέξτε αρχείο.",
                        "File is too big" : "Το αρχείο είναι πολύ μεγάλο",
                    Severity: Minor
                    Found in core/l10n/el.js - About 4 hrs to fix

                      File ru_RU.js has 370 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      OC.L10N.register(
                          "core",
                          {
                          "Please select a file." : "Пожалуйста выберите файл.",
                          "File is too big" : "Файл слишком велик",
                      Severity: Minor
                      Found in core/l10n/ru_RU.js - About 4 hrs to fix

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

                            public function __construct(array $urlParams = []) {
                                parent::__construct('files_sharing', $urlParams);
                        
                                $container = $this->getContainer();
                                $server = $container->getServer();
                        Severity: Major
                        Found in apps/files_sharing/lib/AppInfo/Application.php - About 4 hrs to fix

                          File th_TH.js has 368 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          OC.L10N.register(
                              "core",
                              {
                              "Please select a file." : "กรุณาเลือกแฟ้ม",
                              "File is too big" : "ไฟล์มีขนาดใหญ่เกินไป",
                          Severity: Minor
                          Found in core/l10n/th_TH.js - About 4 hrs to fix

                            File api.php has 367 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * @author Bart Visscher <bartv@thisnet.nl>
                             * @author Bernhard Posselt <dev@bernhard-posselt.com>
                             * @author Björn Schießle <bjoern@schiessle.org>
                            Severity: Minor
                            Found in lib/private/legacy/api.php - About 4 hrs to fix

                              Function initialize has 120 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      initialize: function($el, options) {
                                          var self = this;
                                          options = options || {};
                                          if (this.initialized) {
                                              return;
                              Severity: Major
                              Found in apps/files/js/filelist.js - About 4 hrs to fix

                                File ja.js has 365 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                OC.L10N.register(
                                    "core",
                                    {
                                    "Please select a file." : "ファイルを選択してください。",
                                    "File is too big" : "ファイルが大きすぎます",
                                Severity: Minor
                                Found in core/l10n/ja.js - About 4 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language