Showing 1,591 of 20,976 total issues

File jquery.simple-dtpicker.js has 1065 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * jquery-simple-datetimepicker (jquery.simple-dtpicker.js)
 * v1.12.0
 * (c) Masanori Ohgita - 2014.
 * https://github.com/mugifly/jquery-simple-datetimepicker
Severity: Major
Found in public/assets/js/core/datetimepicker/jquery.simple-dtpicker.js - About 2 days to fix

    File mimetypes.php has 999 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    return [
        '123'          => 'application/vnd.lotus-1-2-3',
        '3dml'         => 'text/vnd.in3d.3dml',
    Severity: Major
    Found in lib/Ajde/Fs/mimetypes.php - About 2 days to fix

      Function UploadHandlerXhr has 491 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      qq.UploadHandlerXhr = function(o, uploadCompleteCallback, logCallback) {
          "use strict";
          
          var options = o,
              uploadComplete = uploadCompleteCallback,
      Severity: Major
      Found in public/assets/js/core/fineuploader/jquery.fineuploader-3.4.1.js - About 2 days to fix

        Function List has 483 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        AC.Crud.List = function() {
        
            var infoHandler        = AC.Core.Alert.show;
            var warningHandler    = AC.Core.Alert.warning;
            var errorHandler    = AC.Core.Alert.error;
        Severity: Major
        Found in core/modules/_core/res/js/crud/list.js - About 2 days to fix

          Function List has a Cognitive Complexity of 116 (exceeds 5 allowed). Consider refactoring.
          Open

          AC.Crud.List = function() {
          
              var infoHandler        = AC.Core.Alert.show;
              var warningHandler    = AC.Core.Alert.warning;
              var errorHandler    = AC.Core.Alert.error;
          Severity: Minor
          Found in core/modules/_core/res/js/crud/list.js - 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

          Function add has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring.
          Open

              'add': function(shortcut_combination,callback,opt) {
                  //Provide a set of default options
                  var default_options = {
                      'type':'keydown',
                      'propagate':false,
          Severity: Minor
          Found in core/modules/_core/res/js/component/shortcut.js - 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

          Google_Service_Plus_ItemScope has 110 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Google_Service_Plus_ItemScope extends Google_Collection
          {
              protected $aboutType = 'Google_Service_Plus_ItemScope';
              protected $aboutDataType = '';
              public $additionalName;
          Severity: Major
          Found in lib/Ajde/Social/Provider/Google/Google/Service/Plus.php - About 2 days to fix

            lessc has 108 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class lessc
            {
                public static $VERSION = 'v0.3.9';
                protected static $TRUE = ['keyword', 'true'];
                protected static $FALSE = ['keyword', 'false'];
            Severity: Major
            Found in lib/Ajde/Document/Processor/Css/lib/less/lessc.inc.php - About 2 days to fix

              File base_facebook.php has 835 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Copyright 2011 Facebook, Inc.
               *
               * Licensed under the Apache License, Version 2.0 (the "License"); you may
              Severity: Major
              Found in lib/Ajde/Social/Provider/Facebook/base_facebook.php - About 2 days to fix

                Function doFragmentDiff has a Cognitive Complexity of 89 (exceeds 5 allowed). Consider refactoring.
                Open

                    private static function doFragmentDiff($from_text, $to_text, $delimiters)
                    {
                        // Empty delimiter means character-level diffing.
                        // In such case, use code path optimized for character-level
                        // diffing.
                Severity: Minor
                Found in lib/Ajde/Component/lib/finediff.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 init has 352 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      init : function( options ) {
                
                        var settings = $.extend(true, {}, defaults);
                
                        settings.options = $.extend(true, settings.options, options);
                Severity: Major
                Found in public/assets/js/core/jqBootstrapValidation.js - About 1 day to fix

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

                  /* jqBootstrapValidation
                   * A plugin for automating validation on Twitter Bootstrap formatted forms.
                   *
                   * v1.3.6
                   *
                  Severity: Major
                  Found in public/assets/js/core/jqBootstrapValidation.js - About 1 day to fix

                    PHPMailer has 88 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class PHPMailer
                    {
                        /**
                         * The PHPMailer Version number.
                         *
                    Severity: Major
                    Found in lib/Ajde/Mailer/class.phpmailer.php - About 1 day to fix

                      Function draw has 324 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var draw = function($picker, option, year, month, day, hour, min) {
                              var date = new Date();
                      
                              if (hour != null) {
                                  date = new Date(year, month, day, hour, min, 0);
                      Severity: Major
                      Found in public/assets/js/core/datetimepicker/jquery.simple-dtpicker.js - About 1 day to fix

                        Function Edit has 323 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        AC.Crud.Edit = function() {
                        
                            var infoHandler        = AC.Core.Alert.show;
                            var warningHandler    = AC.Core.Alert.warning;
                            var errorHandler    = AC.Core.Alert.error;
                        Severity: Major
                        Found in core/modules/_core/res/js/crud/edit.js - About 1 day to fix

                          Function parseChunk has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
                          Open

                              protected function parseChunk()
                              {
                                  if (empty($this->buffer)) {
                                      return false;
                                  }
                          Severity: Minor
                          Found in lib/Ajde/Document/Processor/Css/lib/less/lessc.inc.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

                          File Model.php has 698 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          class Ajde_Model extends Ajde_Object_Standard
                          {
                              const ENCRYPTION_PREFIX = '$$$ENCRYPTED$$$';
                          Severity: Major
                          Found in lib/Ajde/Model.php - About 1 day to fix

                            Function registerJson has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function registerJson()
                                {
                                    $user = new UserModel();
                            
                                    $returnto = Ajde::app()->getRequest()->getPostParam('returnto', false);
                            Severity: Minor
                            Found in core/modules/user/UserController.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

                            File ColorSpace.php has 686 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            
                            /*
                            
                                Color Space : v1.25 : 2009.04.20
                            Severity: Major
                            Found in lib/Ajde/Document/Processor/Css/lib/maximizer/inc/ColorSpace.php - About 1 day to fix

                              File NodeModel.php has 667 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              
                              /**
                               * @property bool ignoreAccessControl
                               */
                              Severity: Major
                              Found in core/modules/node/model/NodeModel.php - About 1 day to fix
                                Severity
                                Category
                                Status
                                Source
                                Language