angelakuo/citydogshare

View on GitHub

Showing 3,976 of 3,976 total issues

Function init has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        init : function() {

            if ( lightbox.initialized ) {
                return;
            }

    Function complete has 90 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            var complete = (function( data, next, active, queue, thumb ) {
    
                return function() {
    
                    var win;

      Function buildSegDragListener has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          buildSegDragListener: function(seg) {
              var _this = this;
              var view = this.view;
              var calendar = view.calendar;
              var el = seg.el;

        Function handleEvents has 88 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            this.handleEvents = function(){
              var SELS = self.SELS;
        
              self.$document.on('click', SELS.CHIPS, function(e){
                $(e.target).find(SELS.INPUT).focus();

          Function handleEvents has 88 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              this.handleEvents = function(){
                var SELS = self.SELS;
          
                self.$document.on('click', SELS.CHIPS, function(e){
                  $(e.target).find(SELS.INPUT).focus();

            Function handleEvents has 88 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                this.handleEvents = function(){
                  var SELS = self.SELS;
            
                  self.$document.on('click', SELS.CHIPS, function(e){
                    $(e.target).find(SELS.INPUT).focus();

              Function trigger has 87 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  trigger: function( event, data, elem, onlyHandlers ) {
              
                      var i, cur, tmp, bubbleType, ontype, handle, special,
                          eventPath = [ elem || document ],
                          type = hasOwn.call( event, "type" ) ? event.type : event,

                Function trigger has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    trigger: function( event, data, elem, onlyHandlers ) {
                
                        var i, cur, tmp, bubbleType, ontype, handle, special,
                            eventPath = [ elem || document ],
                            type = hasOwn.call( event, "type" ) ? event.type : event,

                  Function init has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      init : function(options) {
                        var defaults = {
                          onShow: null
                        };
                        options = $.extend(defaults, options);

                    Function init has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        init : function(options) {
                          var defaults = {
                            onShow: null
                          };
                          options = $.extend(defaults, options);

                      Function init has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          init : function(options) {
                            var defaults = {
                              onShow: null
                            };
                            options = $.extend(defaults, options);

                        Function Expectation has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                        Open

                        getJasmineRequireObj().Expectation = function() {
                        
                          function Expectation(options) {
                            this.util = options.util || { buildFailureMessage: function() {} };
                            this.customEqualityTesters = options.customEqualityTesters || [];

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

                            Obj.prototype.compileNode = function(o) {
                              var answer, dynamicIndex, hasDynamic, i, idt, indent, j, join, k, key, l, lastNoncom, len1, len2, len3, node, oref, prop, props, ref3, value;
                              props = this.properties;
                              if (this.generated) {
                                for (j = 0, len1 = props.length; j < len1; j++) {

                          Function QueueRunner has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          getJasmineRequireObj().QueueRunner = function(j$) {
                          
                            function once(fn) {
                              var called = false;
                              return function() {

                            Function mouseenter.tooltip has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    origin.on({'mouseenter.tooltip': function(e) {
                                      var showTooltip = function() {
                                        setAttributes();
                                        started = true;
                                        tooltipEl.velocity('stop');

                              Function mouseenter.tooltip has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      origin.on({'mouseenter.tooltip': function(e) {
                                        var showTooltip = function() {
                                          setAttributes();
                                          started = true;
                                          tooltipEl.velocity('stop');

                                Function mouseenter.tooltip has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        origin.on({'mouseenter.tooltip': function(e) {
                                          var showTooltip = function() {
                                            setAttributes();
                                            started = true;
                                            tooltipEl.velocity('stop');

                                  File tag-it-aa6d22935fb229046a5b6e99bacb9f76f3fd837307b956d8c87ef2b6b89376e2.js has 308 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*
                                  * jQuery UI Tag-it!
                                  *
                                  * @version v2.0 (06/2011)
                                  *

                                    Function DatePicker has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function DatePicker( picker, settings ) {
                                    
                                        var calendar = this,
                                            element = picker.$node[ 0 ],
                                            elementValue = element.value,

                                      Function _doKeyDown has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _doKeyDown: function(event) {
                                              var onSelect, dateStr, sel,
                                                  inst = $.datepicker._getInst(event.target),
                                                  handled = true,
                                                  isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language