neos/neos-development-collection

View on GitHub

Showing 919 of 1,374 total issues

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

;var MXI_DEBUG = true;
/**
 * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
 * v1.5.7
 *
Severity: Major
Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/moxie.js - About 2 wks to fix

    File jquery-ui-1.10.3.custom.js has 3462 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! jQuery UI - v1.10.3 - 2013-06-15
    * http://jqueryui.com
    * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.tooltip.js, jquery.ui.effect.js, jquery.ui.effect-highlight.js
    * Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
    
    

      Function Uploader has 829 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      plupload.Uploader = function(options) {
          /**
          Fires when the current RunTime has been initialized.
      
          @event Init
      Severity: Major
      Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/plupload.dev.js - About 4 days to fix

        File plupload.dev.js has 1129 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * Plupload - multi-runtime File Uploader
         * v2.3.6
         *
         * Copyright 2013, Moxiecode Systems AB
        Severity: Major
        Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/plupload.dev.js - About 2 days to fix

          File Node.php has 1025 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          namespace Neos\ContentRepository\Domain\Model;
          
          /*
           * This file is part of the Neos.ContentRepository package.
          Severity: Major
          Found in Neos.ContentRepository/Classes/Domain/Model/Node.php - About 2 days to fix

            Function exports has 510 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            module.exports = function (grunt) {
                var path = require('path'),
                    packagePath = path.join(__dirname, '../'),
                    libraryPath = path.join(packagePath, 'Resources/Public/Library/');
            
            
            Severity: Major
            Found in Neos.Neos/Scripts/Gruntfile.js - About 2 days to fix

              File NodeDataRepository.php has 947 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              namespace Neos\ContentRepository\Domain\Repository;
              
              /*
               * This file is part of the Neos.ContentRepository package.

                Node has 119 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Node implements NodeInterface, CacheAwareInterface, TraversableNodeInterface
                {
                    /**
                     * The NodeData entity this version is for.
                     *
                Severity: Major
                Found in Neos.ContentRepository/Classes/Domain/Model/Node.php - About 2 days to fix

                  File NodeCommandControllerPlugin.php has 888 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  namespace Neos\ContentRepository\Command;
                  
                  /*
                   * This file is part of the Neos.ContentRepository package.
                  Severity: Major
                  Found in Neos.ContentRepository/Classes/Command/NodeCommandControllerPlugin.php - About 2 days to fix

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

                    define(
                    [
                        'emberjs',
                        'Library/jquery-with-dependencies',
                        'Content/Inspector/Editors/FileUpload',

                      File jquery.ui.plupload.js has 805 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /**
                       * jquery.ui.plupload.js
                       *
                       * Copyright 2013, Moxiecode Systems AB
                       * Released under GPL License.

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

                        /**
                         * Abstract node tree
                         */
                        define(
                            [

                          Function Image has 379 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function Image() {
                          
                                  RuntimeClient.call(this);
                          
                                  Basic.extend(this, {
                          Severity: Major
                          Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/moxie.js - About 1 day to fix

                            Function XMLHttpRequest has 368 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function XMLHttpRequest() {
                                    var self = this,
                                        // this (together with _p() @see below) is here to gracefully upgrade to setter/getter syntax where possible
                                        props = {
                                            /**
                            Severity: Major
                            Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/moxie.js - About 1 day to fix

                              Function ExifParser has 348 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function ExifParser(data) {
                                      var __super__, tags, tagDescs, offsets, idx, Tiff;
                                      
                                      BinaryReader.call(this, data);
                              
                              
                              Severity: Major
                              Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/moxie.js - About 1 day to fix

                                Function render has a Cognitive Complexity of 86 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function render()
                                    {
                                        $changes = parent::render();
                                
                                        $html = '';
                                Severity: Minor
                                Found in Neos.Diff/Classes/Renderer/Html/HtmlSideBySideRenderer.php - About 1 day 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 execute has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function execute(NodeData $node)
                                    {
                                        foreach ($node->getNodeType()->getProperties() as $propertyName => $propertyConfiguration) {
                                            if (isset($propertyConfiguration['type']) && ($propertyConfiguration['type'] === ImageInterface::class || preg_match('/array\<.*\>/', $propertyConfiguration['type']))) {
                                                if (!isset($nodeProperties)) {

                                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 Parser.php has 622 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                namespace Neos\Fusion\Core;
                                
                                /*
                                 * This file is part of the Neos.Fusion package.
                                Severity: Major
                                Found in Neos.Fusion/Classes/Core/Parser.php - About 1 day to fix

                                  Function UAParser has 265 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var UAParser = (function (undefined) {
                                  
                                          //////////////
                                          // Constants
                                          /////////////
                                  Severity: Major
                                  Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/moxie.js - About 1 day to fix

                                    Function HTML5Image has 264 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function HTML5Image() {
                                            var me = this
                                            , _img, _imgInfo, _canvas, _binStr, _blob
                                            , _modified = false // is set true whenever image is modified
                                            , _preserveHeaders = true
                                    Severity: Major
                                    Found in Neos.Media.Browser/Resources/Public/Libraries/plupload/moxie.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language