Showing 1,591 of 20,976 total issues

File Plus.php has 2926 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
Severity: Major
Found in lib/Ajde/Social/Provider/Google/Google/Service/Plus.php - About 1 wk to fix

    File phpqrcode.php has 2575 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /*
     * PHP QR Code encoder
     *
    Severity: Major
    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 wk to fix

      File Cssmin.php has 2547 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      class Ajde_Resource_Local_Compressor_Css_Cssmin extends CssMin
      {
          private $_contents;
      Severity: Major
      Found in lib/Ajde/Resource/Local/Compressor/lib/Cssmin.php - About 1 wk to fix

        Function Wysiwyg has 1409 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function Wysiwyg() {
                // - the item is added by this.ui.appendControls and then appendItem
                // - click triggers this.triggerControl
                // cmd or[key] - designMode exec function name
                // tags - activates control for these tags (@see checkTargets)
        Severity: Major
        Found in public/assets/js/core/jwysiwyg/jwysiwyg.js - About 1 wk to fix

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

          /**
           * WYSIWYG - jQuery plugin 0.97
           * (0.97.2 - From infinity)
           *
           * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors
          Severity: Major
          Found in public/assets/js/core/jwysiwyg/jwysiwyg.js - About 6 days to fix

            Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            (function( window ) {
            
            var i,
                support,
                Expr,
            Severity: Major
            Found in public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js - About 6 days to fix

              Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              (function( window ) {
              
              var i,
                  support,
                  Expr,
              Severity: Major
              Found in public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js - About 6 days to fix

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

                /**
                 * sifter.js
                 * Copyright (c) 2013 Brian Reavis & contributors
                 *
                 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
                Severity: Major
                Found in public/assets/js/core/selectize/selectize.js - About 6 days to fix

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

                  // Generated by CoffeeScript 1.6.3
                  /*
                  Copyright 2013 Marco Braak
                  
                  Licensed under the Apache License, Version 2.0 (the "License");
                  Severity: Major
                  Found in public/assets/js/core/jqtree/tree.jquery.js - About 6 days to fix

                    File class.phpmailer.php has 1893 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * PHPMailer - PHP email creation and transport class.
                     * PHP Version 5.0.0
                     * Version 5.2.7.
                    Severity: Major
                    Found in lib/Ajde/Mailer/class.phpmailer.php - About 5 days to fix

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

                      /*! jQuery UI - v1.11.4 - 2015-05-29
                      * http://jqueryui.com
                      * Includes: core.js, widget.js, mouse.js, sortable.js
                      * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
                      
                      
                      Severity: Major
                      Found in public/assets/js/core/jqueryui/sortable/jquery-ui.js - About 4 days to fix

                        Function apply has a Cognitive Complexity of 213 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function apply(array &$tokens)
                            {
                                if (!isset($this->configuration['BasePath']) || !is_dir($this->configuration['BasePath'])) {
                                    CssMin::triggerError(new CssError(__FILE__, __LINE__,
                                        __METHOD__.': Base path <code>'.($this->configuration['BasePath'] ? $this->configuration['BasePath'] : 'null').'</code> is not a directory'));
                        Severity: Minor
                        Found in lib/Ajde/Resource/Local/Compressor/lib/Cssmin.php - About 4 days 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 Chosen has 658 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          this.Chosen = (function(_super) {
                            __extends(Chosen, _super);
                        
                            function Chosen() {
                              _ref = Chosen.__super__.constructor.apply(this, arguments);
                        Severity: Major
                        Found in public/assets/js/core/chosen/chosen.proto.js - About 3 days to fix

                          Function jQuery has 614 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var jQuery = (function() {
                          
                          // Define a local copy of jQuery
                          var jQuery = function( selector, context ) {
                                  // The jQuery object is actually just the init constructor 'enhanced'
                          Severity: Major
                          Found in public/assets/js/core/jquery/1.7.2/jquery-1.7.2.js - About 3 days to fix

                            Function UploadHandlerXhr has a Cognitive Complexity of 150 (exceeds 5 allowed). Consider refactoring.
                            Open

                            qq.UploadHandlerXhr = function(o, uploadCompleteCallback, logCallback) {
                                "use strict";
                                
                                var options = o,
                                    uploadComplete = uploadCompleteCallback,
                            Severity: Minor
                            Found in public/assets/js/core/fineuploader/jquery.fineuploader-3.4.1.js - About 3 days 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 link.js has 1133 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
                             * For licensing, see LICENSE.html or http://ckeditor.com/license
                             */
                            
                            
                            Severity: Major
                            Found in public/assets/js/core/ckeditor/lib/plugins/link/dialogs/link.js - About 2 days to fix

                              File chosen.proto.js has 1130 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*!
                              Chosen, a Select Box Enhancer for jQuery and Prototype
                              by Patrick Filler for Harvest, http://getharvest.com
                              
                              Version 1.1.0
                              Severity: Major
                              Found in public/assets/js/core/chosen/chosen.proto.js - About 2 days to fix

                                Function clean has a Cognitive Complexity of 142 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function clean($config)
                                    {
                                        $css = isset($config['css']) ? $config['css'] : '';
                                        $url = isset($config['url']) ? $config['url'] : '';
                                        $compress = isset($config['compress']) ? $config['compress'] : '';
                                Severity: Minor
                                Found in lib/Ajde/Document/Processor/Css/lib/maximizer/CSS3Maximizer.php - About 2 days 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 chosen.jquery.js has 1109 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*!
                                Chosen, a Select Box Enhancer for jQuery and Prototype
                                by Patrick Filler for Harvest, http://getharvest.com
                                
                                Version 1.1.0
                                Severity: Major
                                Found in public/assets/js/core/chosen/chosen.jquery.js - About 2 days to fix

                                  File markdown.php has 1093 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  
                                  //
                                  // Markdown  -  A text-to-HTML conversion tool for web writers
                                  //
                                  Severity: Major
                                  Found in lib/Ajde/Component/Markdown/markdown.php - About 2 days to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language