owncloud/core

View on GitHub

Showing 3,235 of 4,504 total issues

Function reload has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            reload: function () {
                if (!this._systemTagIds.length) {
                    // don't reload
                    this.updateEmptyContent();
                    this.setFiles([]);
Severity: Minor
Found in apps/systemtags/js/systemtagsfilelist.js - About 1 hr to fix

    Function apply has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            var apply = function () {
                var username = dialog.find('[name=username]').val();
                var password = dialog.find('[name=password]').val();
                var endpoint = OC.generateUrl('apps/files_external/userglobalstorages/{id}', {
                    id: mountData.id
    Severity: Minor
    Found in apps/files_external/js/statusmanager.js - About 1 hr to fix

      Function registerAction has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              registerAction: function (action) {
                  var mime = action.mime;
                  var name = action.name;
                  var actionSpec = {
                      action: action.actionHandler,
      Severity: Minor
      Found in apps/files/js/fileactions.js - About 1 hr to fix

        Function highlightFiles has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                highlightFiles: function(files, highlightFunction) {
                    // Detection of the uploaded element
                    var filename = files[files.length - 1];
                    var $fileRow = this.findFileEl(filename);
        
        
        Severity: Minor
        Found in apps/files/js/filelist.js - About 1 hr to fix

          Function _onClickDownloadSelected has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _onClickDownloadSelected: function(event) {
                      var files;
                      var dir = this.getCurrentDirectory();
                      if (this.isAllSelected() && this.getSelectedFiles().length > 1) {
                          files = OC.basename(dir);
          Severity: Minor
          Found in apps/files/js/filelist.js - About 1 hr to fix

            Function getTypeForMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function getTypeForMethod(method, model) {
                    var type = methodMap[method];
            
                    if (!type) {
                        // return method directly
            Severity: Minor
            Found in core/js/oc-backbone-webdav.js - About 1 hr to fix

              Function jqxhr has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          var jqxhr = $.get(OC.filePath(props.appid, '', props.scriptName), function (data) {
                              popup.html(data).ready(function () {
                                  popup.prepend('<span class="arrow ' + arrowclass + '"></span><h2>' + t('core', 'Settings') + '</h2><a class="close"></a>').show();
                                  popup.find('.close').bind('click', function () {
                                      popup.remove();
              Severity: Minor
              Found in core/js/js.js - About 1 hr to fix

                Function _show has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _show: function (container, dir, leafname, leaflink) {
                        var self = this;
                
                        this._clear(container);
                
                
                Severity: Minor
                Found in core/js/js.js - About 1 hr to fix

                  Function generateUrl has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      generateUrl: function (url, params, options) {
                          var defaultOptions = {
                                  escape: true
                              },
                              allOptions = options || {};
                  Severity: Minor
                  Found in core/js/js.js - About 1 hr to fix

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

                        public function execute(InputInterface $input, OutputInterface $output): int {
                            $remoteStorages = $this->getRemoteStorages();
                    
                            $output->writeln(\count($remoteStorages) . " remote storage(s) need(s) to be checked");
                    
                    
                    Severity: Minor
                    Found in apps/files_sharing/lib/Command/CleanupRemoteStorages.php - About 1 hr to fix

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

                          public function __construct($options) {
                              $this->memcacheFactory = \OC::$server->getMemCacheFactory();
                              $this->httpClient = \OC::$server->getHTTPClientService();
                              $this->logger = \OC::$server->getLogger();
                              $this->config = \OC::$server->getConfig();
                      Severity: Minor
                      Found in apps/files_sharing/lib/External/Storage.php - About 1 hr to fix

                        Method changePersonalPassword has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function changePersonalPassword($args) {
                                // Check if we are an user
                                \OC_JSON::callCheck();
                                \OC_JSON::checkLoggedIn();
                        
                        
                        Severity: Minor
                        Found in settings/ChangePassword/Controller.php - About 1 hr to fix

                          Method syncThemAll has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function syncThemAll(\Closure $callback) {
                                  $trustedServers = $this->dbHandler->getAllServer();
                                  foreach ($trustedServers as $trustedServer) {
                                      $url = $trustedServer['url'];
                                      $callback($url, null);
                          Severity: Minor
                          Found in apps/federation/lib/SyncFederationAddressBooks.php - About 1 hr to fix

                            Method run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function run($argument) {
                                    //Current time
                                    $today = new \DateTime("today");
                                    $today = $today->format('Y-m-d H:i:s');
                            
                            
                            Severity: Minor
                            Found in apps/files_sharing/lib/ExpireSharesJob.php - About 1 hr to fix

                              Method copy_recursive has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private static function copy_recursive($source, $destination, View $view) {
                                      $size = 0;
                                      if ($view->is_dir($source)) {
                                          $view->mkdir($destination);
                                          $view->touch($destination, $view->filemtime($source));
                              Severity: Minor
                              Found in apps/files_trashbin/lib/Trashbin.php - About 1 hr to fix

                                Method getDavPermissions has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getDavPermissions() {
                                        $p = '';
                                        if ($this->info->isShared()) {
                                            $p .= 'S';
                                        }
                                Severity: Minor
                                Found in apps/dav/lib/Connector/Sabre/Node.php - About 1 hr to fix

                                  Method getAccepted has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getAccepted($remote, $shareWith) {
                                          $event = $this->eventDispatcher->dispatch(
                                              new GenericEvent('', ['remote' => $remote]),
                                              'remoteshare.received'
                                          );
                                  Severity: Minor
                                  Found in apps/federatedfilesharing/lib/FederatedShareProvider.php - About 1 hr to fix

                                    Method lock has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function lock($uri, Locks\LockInfo $lockInfo) {
                                            if ($this->isPublicEndpoint) {
                                                throw new Forbidden('Forbidden to lock from public endpoint');
                                            }
                                            try {
                                    Severity: Minor
                                    Found in apps/dav/lib/Files/FileLocksBackend.php - About 1 hr to fix

                                      Method setName has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function setName($name) {
                                              $mountPoint = $this->info->getMountPoint();
                                              // rename of a shared mount should always be possible
                                              if (!($mountPoint instanceof SharedMount) && !$this->info->isUpdateable()) {
                                                  throw new \Sabre\DAV\Exception\Forbidden();
                                      Severity: Minor
                                      Found in apps/dav/lib/Connector/Sabre/Node.php - About 1 hr to fix

                                        Method updateCalendar has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function updateCalendar($calendarId, PropPatch $propPatch) {
                                                $supportedProperties = \array_keys($this->propertyMap);
                                                $supportedProperties[] = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp';
                                        
                                                $propPatch->handle($supportedProperties, function ($mutations) use ($calendarId) {
                                        Severity: Minor
                                        Found in apps/dav/lib/CalDAV/CalDavBackend.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language