angelakuo/citydogshare

View on GitHub

Showing 2,136 of 3,976 total issues

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");

                      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 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");

                            Function changeTab has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    changeTab: function(tabPath) {
                                      var
                                        pushStateAvailable = (window.history && window.history.pushState),
                                        shouldIgnoreLoad   = (pushStateAvailable && settings.ignoreFirstLoad && firstLoad),
                                        remoteContent      = (settings.auto || $.isPlainObject(settings.apiSettings) ),

                              Function collapsible has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                $.fn.collapsible = function(options) {
                                  var defaults = {
                                      accordion: undefined
                                  };
                              
                              

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

                                        show: function(index) {
                                
                                            lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;
                                
                                            if ( !lightbox.initialized ) {

                                  Function collapsible has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    $.fn.collapsible = function(options) {
                                      var defaults = {
                                          accordion: undefined
                                      };
                                  
                                  

                                    Function success has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                success: function() {
                                    
                                                    // calculate some cropping
                                                    var newWidth = ( width - options.margin * 2 ) / self.original.width,
                                                        newHeight = ( height - options.margin * 2 ) / self.original.height,

                                      Function collapsible has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        $.fn.collapsible = function(options) {
                                          var defaults = {
                                              accordion: undefined
                                          };
                                      
                                      
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language