owncloud/core

View on GitHub

Showing 3,235 of 4,504 total issues

Method getSupportedDatabases has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getSupportedDatabases($allowAllDatabases = false) {
        $availableDatabases = [
            'sqlite' =>  [
                'type' => 'class',
                'call' => 'SQLite3',
Severity: Major
Found in lib/private/Setup.php - About 2 hrs to fix

    Method execute has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function execute(InputInterface $input, OutputInterface $output): int {
            $confirmed = $input->getOption('continue');
            if (($confirmed !== 'yes') && ($confirmed !== 'no')) {
                $output->writeln('Continue can accept either yes or no');
                return 2;
    Severity: Major
    Found in core/Command/Encryption/DecryptAll.php - About 2 hrs to fix

      Method execute has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function execute(InputInterface $input, OutputInterface $output): int {
              if (\OCP\Util::needUpgrade()) {
                  $output->writeln('Update required, skipping cron');
                  return 1;
              }
      Severity: Major
      Found in core/Command/System/Cron.php - About 2 hrs to fix

        File uk.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        OC.L10N.register(
            "settings",
            {
            "Wrong current password" : "Хибний поточний пароль",
            "The new password cannot be the same as the previous one" : "Новий пароль не може бути таким самим як і попередній",
        Severity: Minor
        Found in settings/l10n/uk.js - About 2 hrs to fix

          File ro.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          OC.L10N.register(
              "core",
              {
              "Please select a file." : "Te rugăm să alegi un fișier.",
              "File is too big" : "Fișierul este prea mare",
          Severity: Minor
          Found in core/l10n/ro.js - About 2 hrs to fix

            File Storage.php has 253 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * @author Björn Schießle <bjoern@schiessle.org>
             * @author Joas Schilling <coding@schilljs.com>
             * @author Lukas Reschke <lukas@statuscode.ch>
            Severity: Minor
            Found in apps/files_sharing/lib/External/Storage.php - About 2 hrs to fix

              File files.php has 253 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/legacy/files.php - About 2 hrs to fix

                Function getMountStatusForMount has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    getMountStatusForMount: function (mountData, afterCallback) {
                        var self = this;
                        if (typeof afterCallback !== 'function' || self.isGetMountStatusRunning) {
                            return $.Deferred().resolve();
                        }
                Severity: Major
                Found in apps/files_external/js/statusmanager.js - About 2 hrs to fix

                  Function _extendFileActions has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          _extendFileActions: function(fileActions) {
                              var self = this;
                              // register "star" action
                              fileActions.registerAction({
                                  name: 'Favorite',
                  Severity: Major
                  Found in apps/files/js/tagsplugin.js - About 2 hrs to fix

                    Function render has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            render: function () {
                                var isPasswordSet = !!this.model.get('encryptedPassword');
                    
                                // only show email field for new shares and if enabled globally
                                var showEmailField = this.configModel.isMailPublicNotificationEnabled();
                    Severity: Major
                    Found in core/js/sharedialoglinkshareview.js - About 2 hrs to fix

                      Function markFileAsShared has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          markFileAsShared: function($tr, hasShares, hasLink) {
                              var action = $tr.find('.fileactions .action[data-action="Share"]');
                              var type = $tr.data('type');
                              var icon = action.find('.icon');
                              var message;
                      Severity: Major
                      Found in core/js/share.js - About 2 hrs to fix

                        Function appSettings has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            appSettings: function (args) {
                                if (typeof args === 'undefined' || typeof args.appid === 'undefined') {
                                    throw {name: 'MissingParameter', message: 'The parameter appid is missing'};
                                }
                                var props = {scriptName: 'settings.php', cache: true};
                        Severity: Major
                        Found in core/js/js.js - About 2 hrs to fix

                          Function tipsy has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          jQuery.fn.tipsy = function (argument) {
                              console.warn('Deprecation warning: tipsy is deprecated. Use tooltip instead.');
                              if (typeof argument === 'object' && argument !== null) {
                          
                                  // tipsy defaults
                          Severity: Major
                          Found in core/js/js.js - About 2 hrs to fix

                            Method schedule has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function schedule(ITip\Message $iTipMessage) {
                                    // Not sending any emails if OC-CalDav-Import header is set
                                    if ($this->request->getHeader('OC-CalDav-Import') !== null) {
                                        return;
                                    }
                            Severity: Major
                            Found in apps/dav/lib/CalDAV/Schedule/IMipPlugin.php - About 2 hrs to fix

                              File AvatarController.php has 251 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              /**
                               * @author Joas Schilling <coding@schilljs.com>
                               * @author Lukas Reschke <lukas@statuscode.ch>
                               * @author Martin Mattel <martin.mattel@diemattels.at>
                              Severity: Minor
                              Found in core/Controller/AvatarController.php - About 2 hrs to fix

                                Function _handleFileTreeEntry has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _handleFileTreeEntry: function (entry, path) {
                                            var that = this,
                                                dfd = $.Deferred(),
                                                entries = [],
                                                dirReader,
                                Severity: Minor
                                Found in apps/files/js/jquery.fileupload.js - About 2 hrs to fix

                                  Function render has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          render: function () {
                                              this.$el.html(this.template({
                                                  cid: this.cid,
                                                  urlLabel: t('core', 'Link'),
                                                  addLinkText: t('core', 'Create public link'),
                                  Severity: Minor
                                  Found in core/js/sharedialoglinklistview.js - About 2 hrs to fix

                                    Function _getUsersForBatchAction has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _getUsersForBatchAction: function(search) {
                                                var view = this;
                                                var foundUsers = [];
                                                var notFound = [];
                                                var promises = [];
                                    Severity: Minor
                                    Found in core/js/sharedialogview.js - About 2 hrs to fix

                                      Method setEnabled has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function setEnabled($id, $enabled) {
                                              $userId = $this->userSession->getUser()->getUID();
                                              $user = $this->userManager->get($id);
                                              '@phan-var \OC\Group\Manager $this->groupManager';
                                      
                                      
                                      Severity: Minor
                                      Found in settings/Controller/UsersController.php - About 2 hrs to fix

                                        Method xmlDeserialize has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static function xmlDeserialize(Reader $reader) {
                                                $elems = (array)$reader->parseInnerTree([
                                                    '{DAV:}prop' => KeyValue::class,
                                                    '{http://owncloud.org/ns}filter-rules' => Base::class,
                                                    '{http://owncloud.org/ns}search' => KeyValue::class,
                                        Severity: Minor
                                        Found in apps/dav/lib/Files/Xml/FilterRequest.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language