Showing 3,976 of 3,976 total issues
Function scrollSpy
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.scrollSpy = function(selector, options) {
var defaults = {
throttle: 100,
scrollOffset: 200 // offset - 200 allows elements near bottom of page to scroll
};
File sideNav-de5e615b7a32eb9e55ffc9573e4186ef01339badef5ecb1f3f6d591686f49ac8.js
has 275 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function ($) {
var methods = {
init : function(options) {
var defaults = {
Function scrollSpy
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.scrollSpy = function(selector, options) {
var defaults = {
throttle: 100,
scrollOffset: 200 // offset - 200 allows elements near bottom of page to scroll
};
Method has too many lines. [18/10] Open
Open
def to_form_hash
return {
:name => self.name,
:dob => self.dob.year,
:size => self.size.id,
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Function mutateEvent
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mutateEvent(event, newProps, largeUnit) {
var miscProps = {};
var oldProps;
var clearEnd;
var startDelta;
Function MockDate
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MockDate(global) {
var self = this;
var currentTime = 0;
if (!global || !global.Date) {
Function bounce
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.bounce = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
// defaults:
Function bounce
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return $.effects.effect.bounce = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
// defaults:
Function bounce
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectBounce = $.effects.effect.bounce = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
// defaults:
Function query
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
query: function() {
if(module.is.disabled()) {
module.debug('Element is disabled API request aborted');
return;
Function domManip
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domManip( collection, args, callback, ignored ) {
// Flatten any nested arrays
args = concat.apply( [], args );
Function init
has 63 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 resize
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function() {
var outerDimensions,
that = $(this).resizable( "instance" ),
o = that.options,
cs = that.size,
Function resize
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function() {
var outerDimensions,
that = $(this).resizable( "instance" ),
o = that.options,
cs = that.size,
Function addPan
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addPan : function( img ) {
if ( this._options.imageCrop === false ) {
return;
}
Function resize
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function() {
var outerDimensions,
that = $(this).resizable( "instance" ),
o = that.options,
cs = that.size,
Function Deferred
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var tuples = [
// action, add listener, listener list, final state
[ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
Function buildEventFromInput
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildEventFromInput(input, source) {
var out = {};
var start, end;
var allDay;
Function mergeInterpolationTokens
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Lexer.prototype.mergeInterpolationTokens = function(tokens, options, fn) {
var converted, firstEmptyStringIndex, firstIndex, i, j, lastToken, len, locationToken, lparen, plusToken, ref2, rparen, tag, token, tokensToPush, value;
if (tokens.length > 1) {
lparen = this.token('STRING_START', '(', 0, 0);
}
Function Deferred
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var tuples = [
// action, add listener, listener list, final state
[ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],