angelakuo/citydogshare

View on GitHub

Showing 3,976 of 3,976 total issues

Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _mouseDown: function(event) {
        // don't let more than one widget handle mouseStart
        if ( mouseHandled ) {
            return;
        }

    Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _mouseDown: function(event) {
            // don't let more than one widget handle mouseStart
            if ( mouseHandled ) {
                return;
            }

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

          load: function( index, event ) {
              index = this._getIndex( index );
              var that = this,
                  tab = this.tabs.eq( index ),
                  anchor = tab.find( ".ui-tabs-anchor" ),

        Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _mouseDown: function(event) {
                // don't let more than one widget handle mouseStart
                if ( mouseHandled ) {
                    return;
                }

          Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _mouseDown: function(event) {
                  // don't let more than one widget handle mouseStart
                  if ( mouseHandled ) {
                      return;
                  }

            Function _attachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _attachments: function(input, inst) {
                    var showOn, buttonText, buttonImage,
                        appendText = this._get(inst, "appendText"),
                        isRTL = this._get(inst, "isRTL");
            
            

              Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _mouseDown: function(event) {
                      // don't let more than one widget handle mouseStart
                      if ( mouseHandled ) {
                          return;
                      }

                Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _mouseDown: function(event) {
                        // don't let more than one widget handle mouseStart
                        if ( mouseHandled ) {
                            return;
                        }

                  Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _mouseDown: function(event) {
                          // don't let more than one widget handle mouseStart
                          if ( mouseHandled ) {
                              return;
                          }

                    Function start has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                start: function() {
                    
                                    // If it’s already started, do nothing.
                                    if ( STATE && STATE.start ) return P
                    
                    

                      Function start has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  start: function() {
                      
                                      // If it’s already started, do nothing.
                                      if ( STATE && STATE.start ) return P
                      
                      

                        Function _attachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _attachments: function(input, inst) {
                                var showOn, buttonText, buttonImage,
                                    appendText = this._get(inst, "appendText"),
                                    isRTL = this._get(inst, "isRTL");
                        
                        

                          Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _mouseDown: function(event) {
                                  // don't let more than one widget handle mouseStart
                                  if ( mouseHandled ) {
                                      return;
                                  }

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

                                load: function( index, event ) {
                                    index = this._getIndex( index );
                                    var that = this,
                                        tab = this.tabs.eq( index ),
                                        anchor = tab.find( ".ui-tabs-anchor" ),

                              Function ReportDispatcher has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                              Open

                              getJasmineRequireObj().ReportDispatcher = function() {
                                function ReportDispatcher(methods) {
                              
                                  var dispatchedMethods = methods || [];
                              
                              

                              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 Any has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                              Open

                              getJasmineRequireObj().Any = function(j$) {
                              
                                function Any(expectedObject) {
                                  if (typeof expectedObject === 'undefined') {
                                    throw new TypeError(

                              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 access has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                  var i = 0,
                                      len = elems.length,
                                      bulk = key == null;
                              
                              

                                Function toggleClass has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    toggleClass: function( value, stateVal ) {
                                        var type = typeof value;
                                
                                        if ( typeof stateVal === "boolean" && type === "string" ) {
                                            return stateVal ? this.addClass( value ) : this.removeClass( value );

                                  Function access has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                      var i = 0,
                                          len = elems.length,
                                          bulk = key == null;
                                  
                                  

                                    Function toggleClass has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        toggleClass: function( value, stateVal ) {
                                            var type = typeof value;
                                    
                                            if ( typeof stateVal === "boolean" && type === "string" ) {
                                                return stateVal ? this.addClass( value ) : this.removeClass( value );
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language