klein0r/affiliate-dashboard

View on GitHub

Showing 320 of 320 total issues

Function data has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    data: function( key, value ) {
        var i, name, data,
            elem = this[0],
            attrs = elem && elem.attributes;

Severity: Minor
Found in web/js/jquery.js - About 1 hr to fix

    Function fixCloneNodeIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function fixCloneNodeIssues( src, dest ) {
        var nodeName, e, data;
    
        // We do not need to do anything for non-Elements
        if ( dest.nodeType !== 1 ) {
    Severity: Minor
    Found in web/js/jquery.js - About 1 hr to fix

      Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.fn.load = function( url, params, callback ) {
          if ( typeof url !== "string" && _load ) {
              return _load.apply( this, arguments );
          }
      
      
      Severity: Minor
      Found in web/js/jquery.js - About 1 hr to fix

        Function removeClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            removeClass: function( value ) {
                var classes, elem, cur, clazz, j, finalValue,
                    i = 0,
                    len = this.length,
                    proceed = arguments.length === 0 || typeof value === "string" && value;
        Severity: Minor
        Found in web/js/jquery.js - About 1 hr to fix

          Function addClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              addClass: function( value ) {
                  var classes, elem, cur, clazz, j, finalValue,
                      i = 0,
                      len = this.length,
                      proceed = typeof value === "string" && value;
          Severity: Minor
          Found in web/js/jquery.js - About 1 hr to fix

            Function fixCloneNodeIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function fixCloneNodeIssues( src, dest ) {
                var nodeName, e, data;
            
                // We do not need to do anything for non-Elements
                if ( dest.nodeType !== 1 ) {
            Severity: Minor
            Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

              Method tagsAction has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function tagsAction()
                  {
                      $em = $this->getDoctrine()->getManager();
                      $translator = $this->get('translator');
              
              
              Severity: Minor
              Found in src/AffiliateDashboardBundle/Controller/ChartController.php - About 1 hr to fix

                Function data has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    data: function( key, value ) {
                        var i, name, data,
                            elem = this[0],
                            attrs = elem && elem.attributes;
                
                
                Severity: Minor
                Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                  Function removeClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      removeClass: function( value ) {
                          var classes, elem, cur, clazz, j, finalValue,
                              i = 0,
                              len = this.length,
                              proceed = arguments.length === 0 || typeof value === "string" && value;
                  Severity: Minor
                  Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                    Function addClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        addClass: function( value ) {
                            var classes, elem, cur, clazz, j, finalValue,
                                i = 0,
                                len = this.length,
                                proceed = typeof value === "string" && value;
                    Severity: Minor
                    Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                      Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.fn.load = function( url, params, callback ) {
                          if ( typeof url !== "string" && _load ) {
                              return _load.apply( this, arguments );
                          }
                      
                      
                      Severity: Minor
                      Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix

                        Function __construct has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false)
                            {
                                $cfgValue = ini_get($cfgName);
                        
                                if (is_callable($evaluation)) {
                        Severity: Minor
                        Found in var/SymfonyRequirements.php - About 1 hr 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 show has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          Collapse.prototype.show = function () {
                            if (this.transitioning || this.$element.hasClass('in')) return
                        
                            var startEvent = $.Event('show.bs.collapse')
                            this.$element.trigger(startEvent)
                        Severity: Minor
                        Found in web/js/bootstrap.js - About 1 hr to fix

                          Function show has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            Collapse.prototype.show = function () {
                              if (this.transitioning || this.$element.hasClass('in')) return
                          
                              var startEvent = $.Event('show.bs.collapse')
                              this.$element.trigger(startEvent)
                          Severity: Minor
                          Found in web/js/bootstrap_collapse_5.js - About 1 hr to fix

                            Function promise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            jQuery.ready.promise = function( obj ) {
                                if ( !readyList ) {
                            
                                    readyList = jQuery.Deferred();
                            
                            
                            Severity: Minor
                            Found in web/js/jquery.js - About 1 hr to fix

                              Function backdrop has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                Modal.prototype.backdrop = function (callback) {
                                  var that    = this
                                  var animate = this.$element.hasClass('fade') ? 'fade' : ''
                              
                                  if (this.isShown && this.options.backdrop) {
                              Severity: Minor
                              Found in web/js/bootstrap_modal_7.js - About 1 hr to fix

                                Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    attr: function( elem, name, value ) {
                                        var hooks, ret,
                                            nType = elem.nodeType;
                                
                                        // don't get/set attributes on text, comment and attribute nodes
                                Severity: Minor
                                Found in web/js/jquery.js - About 1 hr to fix

                                  Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      handlers: function( event, handlers ) {
                                          var sel, handleObj, matches, i,
                                              handlerQueue = [],
                                              delegateCount = handlers.delegateCount,
                                              cur = event.target;
                                  Severity: Minor
                                  Found in web/js/jquery.js - About 1 hr to fix

                                    Function backdrop has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      Modal.prototype.backdrop = function (callback) {
                                        var that    = this
                                        var animate = this.$element.hasClass('fade') ? 'fade' : ''
                                    
                                        if (this.isShown && this.options.backdrop) {
                                    Severity: Minor
                                    Found in web/js/bootstrap.js - About 1 hr to fix

                                      Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          attr: function( elem, name, value ) {
                                              var hooks, ret,
                                                  nType = elem.nodeType;
                                      
                                              // don't get/set attributes on text, comment and attribute nodes
                                      Severity: Minor
                                      Found in web/js/jquery_jquery-1.11.1_1.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language