angelakuo/citydogshare

View on GitHub

Showing 2,136 of 3,976 total issues

Function _processTabs has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _processTabs: function() {
        var that = this,
            prevTabs = this.tabs,
            prevAnchors = this.anchors,
            prevPanels = this.panels;

    Function _contactContainers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _contactContainers: function(event) {
            var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
                innermostContainer = null,
                innermostIndex = null;
    
    

      Function str has 70 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function str(key, holder) {
      
      // Produce a string from holder[key].
      
              var i,          // The loop counter.

        Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _create: function() {
                this.activeMenu = this.element;
        
                // Flag used to prevent firing of the click handler
                // as the event bubbles up through nested menus

          Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _create: function() {
                  this.activeMenu = this.element;
          
                  // Flag used to prevent firing of the click handler
                  // as the event bubbles up through nested menus

            Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _create: function() {
                    this.activeMenu = this.element;
            
                    // Flag used to prevent firing of the click handler
                    // as the event bubbles up through nested menus

              Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _create: function() {
                      this.activeMenu = this.element;
              
                      // Flag used to prevent firing of the click handler
                      // as the event bubbles up through nested menus

                Function add has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    add: function( elem, types, handler, data, selector ) {
                
                        var handleObjIn, eventHandle, tmp,
                            events, t, handleObj,
                            special, handlers, type, namespaces, origType,

                  Function stick has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          stick: function() {
                            var
                              cache          = module.cache,
                              fits           = cache.fits,
                              element        = cache.element,

                    Function limitRow has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        limitRow: function(row, levelLimit) {
                            var _this = this;
                            var rowStruct = this.rowStructs[row];
                            var moreNodes = []; // array of "more" <a> links and <td> DOM nodes
                            var col = 0; // col #, left-to-right (not chronologically)

                      Function resolve has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                          function resolve( depth, deferred, handler, special ) {
                                              return function() {
                                                  var that = this,
                                                      args = arguments,
                                                      mightThrow = function() {

                        Function base has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                        Open

                        getJasmineRequireObj().base = function(j$, jasmineGlobal) {
                          j$.unimplementedMethod_ = function() {
                            throw new Error('unimplemented method');
                          };
                        
                        

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

                            renderSegRow: function(row, rowSegs) {
                                var colCnt = this.colCnt;
                                var segLevels = this.buildSegLevels(rowSegs); // group into sub-arrays of levels
                                var levelCnt = Math.max(1, segLevels.length); // ensure at least one level
                                var tbody = $('<tbody/>');

                          Function processRelativeTime has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function processRelativeTime(number, withoutSuffix, key, isFuture) {
                                  var result = number + ' ';
                                  switch (key) {
                                      case 's':
                                          return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';

                            Function regexToken has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Lexer.prototype.regexToken = function() {
                                  var body, closed, end, flags, index, match, origin, prev, ref2, ref3, ref4, regex, tokens;
                                  switch (false) {
                                    case !(match = REGEX_ILLEGAL.exec(this.chunk)):
                                      this.error("regular expressions cannot begin with " + match[2], {

                              Function _keydown has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _keydown: function( event ) {
                                      var match, prev, character, skip,
                                          preventDefault = true;
                              
                                      switch ( event.keyCode ) {

                                Function _keydown has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _keydown: function( event ) {
                                        var match, prev, character, skip,
                                            preventDefault = true;
                                
                                        switch ( event.keyCode ) {

                                  Function _keydown has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _keydown: function( event ) {
                                          var match, prev, character, skip,
                                              preventDefault = true;
                                  
                                          switch ( event.keyCode ) {

                                    Function _keydown has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _keydown: function( event ) {
                                            var match, prev, character, skip,
                                                preventDefault = true;
                                    
                                            switch ( event.keyCode ) {

                                      Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function done( status, nativeStatusText, responses, headers ) {
                                                  var isSuccess, success, error, response, modified,
                                                      statusText = nativeStatusText;
                                      
                                                  // Called once
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language