Showing 2,136 of 3,976 total issues
Function CallTracker
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getJasmineRequireObj().CallTracker = function(j$) {
function CallTracker() {
var calls = [];
var opts = {};
Function _setOption
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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
Open
class DogsController < ApplicationController
require 'dog_form_filler'
before_filter :current_user
Function invoke
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invoke: function(query, passedArguments, context) {
var
object = instance,
maxDepth,
found,
Function showModal
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showModal: function(callback) {
callback = $.isFunction(callback)
? callback
: function(){}
;
Function init
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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
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
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
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
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
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
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
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
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
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
Open
parse: function( red, green, blue, alpha ) {
if ( red === undefined ) {
this._rgba = [ null, null, null, null ];
return this;
}