owncloud/core

View on GitHub

Showing 2,976 of 13,780 total issues

File Share20OcsControllerTest.php has 2794 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * @author Björn Schießle <bjoern@schiessle.org>
 * @author Michael Jobst <mjobst+github@tecratech.de>
 * @author Roeland Jago Douma <rullzer@owncloud.com>
Severity: Major
Found in apps/files_sharing/tests/Controller/Share20OcsControllerTest.php - About 1 wk to fix

    File filelistSpec.js has 2643 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
    * ownCloud
    *
    * @author Vincent Petry
    * @copyright Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
    Severity: Major
    Found in apps/files/tests/js/filelistSpec.js - About 1 wk to fix

      File UsersTest.php has 2384 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
       * @author Joas Schilling <coding@schilljs.com>
       * @author Lukas Reschke <lukas@statuscode.ch>
      Severity: Major
      Found in apps/provisioning_api/tests/UsersTest.php - About 6 days to fix

        File filelist.js has 2068 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
         * Copyright (c) 2014
         *
         * This file is licensed under the Affero General Public License version 3
         * or later.
        Severity: Major
        Found in apps/files/js/filelist.js - About 5 days to fix

          Method changeSchema has 984 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function changeSchema(Schema $schema, array $options) {
                  $prefix = $options['tablePrefix'];
          
                  if (!$schema->hasTable("${prefix}addressbookchanges")) {
                      $addressBookChangesTable = $schema->createTable("${prefix}addressbookchanges");
          Severity: Major
          Found in core/Migrations/Version20170101010100.php - About 4 days to fix

            File ShareesTest.php has 1577 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 Roeland Jago Douma <rullzer@owncloud.com>
            Severity: Major
            Found in apps/files_sharing/tests/API/ShareesTest.php - About 4 days to fix

              File View.php has 1411 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: Major
              Found in lib/private/Files/View.php - About 3 days to fix

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

                    public function __construct($webRoot, \OC\Config $config) {
                        parent::__construct();
                        $this->webRoot = $webRoot;
                
                        $this->registerService('SettingsManager', function (Server $c) {
                Severity: Major
                Found in lib/private/Server.php - About 3 days to fix

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

                  /**
                   * Disable console output unless DEBUG mode is enabled.
                   * Add
                   *      'debug' => true,
                   * To the definition of $CONFIG in config/config.php to enable debug mode.
                  Severity: Major
                  Found in core/js/js.js - About 3 days to fix

                    File jquery.fileupload.js has 1122 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*
                     * jQuery File Upload Plugin
                     * https://github.com/blueimp/jQuery-File-Upload
                     *
                     * Copyright 2010, Sebastian Tschan
                    Severity: Major
                    Found in apps/files/js/jquery.fileupload.js - About 2 days to fix

                      File Server.php has 1097 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
                       * @author Bart Visscher <bartv@thisnet.nl>
                       * @author Bernhard Posselt <dev@bernhard-posselt.com>
                      Severity: Major
                      Found in lib/private/Server.php - About 2 days to fix

                        File FileTest.php has 1068 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * @author Joas Schilling <coding@schilljs.com>
                         * @author Robin Appelman <icewind@owncloud.com>
                         * @author Thomas Müller <thomas.mueller@tmit.eu>
                        Severity: Major
                        Found in apps/dav/tests/unit/Connector/Sabre/FileTest.php - About 2 days to fix

                          File ApiTest.php has 1050 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 Morris Jobke <hey@morrisjobke.de>
                          Severity: Major
                          Found in apps/files_sharing/tests/ApiTest.php - About 2 days to fix

                            File Version20170101010100.php has 993 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * @author Philipp Schaffrath <pschaffrath@owncloud.com>
                             *
                             * @copyright Copyright (c) 2018, ownCloud GmbH
                            Severity: Major
                            Found in core/Migrations/Version20170101010100.php - About 2 days to fix

                              File coreSpec.js has 963 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /**
                              * ownCloud
                              *
                              * @author Vincent Petry
                              * @copyright Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
                              Severity: Major
                              Found in core/js/tests/specs/coreSpec.js - About 2 days to fix

                                File CalDavBackend.php has 955 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                /**
                                 * @author Joas Schilling <coding@schilljs.com>
                                 * @author Stefan Weil <sw@weilnetz.de>
                                 * @author Thomas Citharel <tcit@tcit.fr>
                                Severity: Major
                                Found in apps/dav/lib/CalDAV/CalDavBackend.php - About 2 days to fix

                                  File file-upload.js has 895 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*
                                   * Copyright (c) 2018
                                   *
                                   * This file is licensed under the Affero General Public License version 3
                                   * or later.
                                  Severity: Major
                                  Found in apps/files/js/file-upload.js - About 2 days to fix

                                    File Manager.php has 894 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    /**
                                     * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
                                     * @author Björn Schießle <bjoern@schiessle.org>
                                     * @author Joas Schilling <coding@schilljs.com>
                                    Severity: Major
                                    Found in lib/private/Share20/Manager.php - About 2 days to fix

                                      File util.php has 865 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      <?php
                                      /**
                                       * @author Adam Williamson <awilliam@redhat.com>
                                       * @author Andreas Fischer <bantu@owncloud.com>
                                       * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
                                      Severity: Major
                                      Found in lib/private/legacy/util.php - About 2 days to fix

                                        File sharedialogviewSpec.js has 854 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /**
                                        * ownCloud
                                        *
                                        * @author Vincent Petry
                                        * @copyright Copyright (c) 2018 Vincent Petry <pvince81@owncloud.com>
                                        Severity: Major
                                        Found in core/js/tests/specs/sharedialogviewSpec.js - About 2 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language