Showing 3,976 of 3,976 total issues
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
Function rescale
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale: function(event) {
// calculate
var width = M.min( $win.width()-40, lightbox.width ),
height = M.min( $win.height()-60, lightbox.height ),
Function navigate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.prototype.navigate = function( type, value, options ) {
var targetDateObject,
targetYear,
targetMonth,
Function bindControls
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindControls: function() {
var i;
carousel.next.on( 'click:fast', function(e) {
Function start
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start ( event, data ) {
var d = document.documentElement;
// Mark the handle as 'active' so it can be styled.
Function navigate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.prototype.navigate = function( type, value, options ) {
var targetDateObject,
targetYear,
targetMonth,
Function _createButtons
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createButtons: function() {
var that = this,
buttons = this.options.buttons;
// if we already have a button pane, remove it
Function _determineButtonType
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
var ancestor, labelSelector, checked;
if ( this.element.is("[type=checkbox]") ) {
this.type = "checkbox";
Function to
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spaces.hsla.to = function( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
Function stop
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( event ) {
var that = $(this).resizable( "instance" ),
o = that.options,
pr = that._proportionallyResizeElements,
ista = pr.length && (/textarea/i).test(pr[0].nodeName),
Block has too many lines. [35/25] Open
Open
Citydogshare::Application.routes.draw do
## Route Route ##
root :to => 'welcome#index'
## Session Routes ##
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Function sliceRangeByDay
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sliceRangeByDay: function(range) {
var daysPerRow = this.daysPerRow;
var normalRange = this.view.computeDayRange(range); // make whole-day range, considering nextDayThreshold
var rangeFirst = this.getDateDayIndex(normalRange.start); // inclusive first index
var rangeLast = this.getDateDayIndex(normalRange.end.clone().subtract(1, 'days')); // inclusive last index
Function ListenerMixin
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ListenerMixin = FC.ListenerMixin = (function() {
var guid = 0;
var ListenerMixin = {
listenerId: null,
Function hide
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide: function(callback) {
callback = $.isFunction(callback) ? callback : function(){};
module.debug('Hiding pop-up');
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
$popup
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function setting
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setting: function(setting, value, modules, modifyExisting) {
modules = (typeof modules === 'string')
? (modules === 'all')
? settings.modules
: [modules]
Function tryFetchEventSource
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tryFetchEventSource(source, fetchId) {
_fetchEventSource(source, function(eventInputs) {
var isArraySource = $.isArray(source.events);
var i, eventInput;
var abstractEvent;