angelakuo/citydogshare

View on GitHub

Showing 2,136 of 3,976 total issues

Function CallTracker has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

getJasmineRequireObj().CallTracker = function(j$) {

  function CallTracker() {
    var calls = [];
    var opts = {};

    Function _setOption has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _setOption: function( key, value ) {
            var i,
                valsLength = 0;
    
            if ( key === "range" && this.options.range === true ) {

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

          add: function(handleObj) {
      
              var getCoords = function(e) {
                  if ( e.touches && e.touches.length ) {
                      var touch = e.touches[0];

        Function _setOption has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _setOption: function( key, value ) {
                var i,
                    valsLength = 0;
        
                if ( key === "range" && this.options.range === true ) {

          Class DogsController has 21 methods (exceeds 20 allowed). Consider refactoring.
          Open

          class DogsController < ApplicationController
          
            require 'dog_form_filler'
          
            before_filter :current_user
          Severity: Minor
          Found in app/controllers/dogs_controller.rb - About 2 hrs to fix

            Function invoke has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    invoke: function(query, passedArguments, context) {
                      var
                        object = instance,
                        maxDepth,
                        found,

              Function showModal has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      showModal: function(callback) {
                        callback = $.isFunction(callback)
                          ? callback
                          : function(){}
                        ;

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

                    init = jQuery.fn.init = function( selector, context, root ) {
                        var match, elem;
                
                        // HANDLE: $(""), $(null), $(undefined), $(false)
                        if ( !selector ) {

                  Function remove has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      remove: function( elem, types, handler, selector, mappedTypes ) {
                          var j, handleObj, tmp,
                              origCount, t, events,
                              special, handlers, type,
                              namespaces, origType,

                    Function _mouseStart has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _mouseStart: function(event) {
                            var that = this,
                                options = this.options;
                    
                            this.opos = [ event.pageX, event.pageY ];

                      Function keydown has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              keydown: function( event ) {
                                  var preventDefault = true;
                                  switch ( event.keyCode ) {
                                      case $.ui.keyCode.TAB:
                                      case $.ui.keyCode.ESCAPE:

                        Function generateSpread has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function generateSpread ( density, mode, group ) {
                        
                                var originalSpectrumDirection = scope_Spectrum.direction,
                                    indexes = {},
                                    firstInRange = scope_Spectrum.xVal[0],

                          Function keydown has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  keydown: function( event ) {
                                      var preventDefault = true;
                                      switch ( event.keyCode ) {
                                          case $.ui.keyCode.TAB:
                                          case $.ui.keyCode.ESCAPE:

                            Function _mouseStart has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _mouseStart: function(event) {
                                    var that = this,
                                        options = this.options;
                            
                                    this.opos = [ event.pageX, event.pageY ];

                              Function open has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      open: function(query) {
                                        var
                                          $activeTitle = (query !== undefined)
                                            ? (typeof query === 'number')
                                              ? $title.eq(query)

                                Function nextPosition has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                          nextPosition: function(position) {
                                            var
                                              positions          = position.split(' '),
                                              verticalPosition   = positions[0],
                                              horizontalPosition = positions[1],

                                  Function getJasmineRequireObj has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var getJasmineRequireObj = (function (jasmineGlobal) {
                                    var jasmineRequire;
                                  
                                    if (typeof module !== 'undefined' && module.exports && typeof exports !== 'undefined') {
                                      if (typeof global !== 'undefined') {

                                    Function createToast has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function createToast(html) {
                                    
                                            // Create toast
                                            var toast = document.createElement('div');
                                            toast.classList.add('toast');

                                      Function parse has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          parse: function( red, green, blue, alpha ) {
                                              if ( red === undefined ) {
                                                  this._rgba = [ null, null, null, null ];
                                                  return this;
                                              }

                                        Function parse has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            parse: function( red, green, blue, alpha ) {
                                                if ( red === undefined ) {
                                                    this._rgba = [ null, null, null, null ];
                                                    return this;
                                                }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language