Showing 101 of 181 total issues
Function prepareElementRoot
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareElementRoot() {
P.$root.
on({
Function generateSpread
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateSpread ( density, mode, group ) {
function safeIncrement(value, increment) {
// Avoid floating point variance by dropping the smallest decimal places.
return (value + increment).toFixed(7) / 1;
Function returnToOriginal
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function returnToOriginal() {
doneAnimating = false;
var placeholder = origin.parent('.material-placeholder');
File chips.js
has 252 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function ($) {
var materialChipsDefaults = {
data: [],
placeholder: '',
secondaryPlaceholder: '',
Function formats
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.prototype.formats = (function() {
// Return the length of the first word in a collection.
function getWordLengthFromCollection( string, collection, dateObject ) {
Function pushpin
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.pushpin = function (options) {
// Defaults
var defaults = {
top: 0,
bottom: Infinity,
Function onKeyDown
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onKeyDown = function(e){
// TAB - switch to another input
if(e.which == 9){
$newSelect.trigger('close');
return;
Function validate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.prototype.validate = function( type, dateObject, options ) {
var calendar = this,
// Keep a reference to the original date.
Consider simplifying this complex logical expression. Open
Open
if ( !options || !options.nav ) if (
/* 1 */ ( !isFlippedBase && calendar.disabled( dateObject ) ) ||
/* 2 */ ( isFlippedBase && calendar.disabled( dateObject ) && ( hasEnabledWeekdays || hasEnabledBeforeTarget || hasEnabledAfterTarget ) ) ||
/* 3 */ ( !isFlippedBase && (dateObject.pick <= minLimitObject.pick || dateObject.pick >= maxLimitObject.pick) )
) {
Function mousedown
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mousedown(e, space) {
var offset = plate.offset(),
isTouch = /^touch/.test(e.type),
x0 = offset.left + dialRadius,
y0 = offset.top + dialRadius,
Function item
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
item: function( rowCounter ) {
// If Monday is the first day and the month starts on Sunday, shift the date back a week.
var shiftDateBy = settings.firstDay && calendar.create([ viewsetObject.year, viewsetObject.month, 1 ]).day === 0 ? -7 : 0
Function open
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( dontGiveFocus ) {
// If it’s already open, do nothing.
if ( STATE.open ) return P
Function defaults
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.defaults = (function( prefix ) {
return {
// The title label to use for the month nav buttons
Function removeMenu
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var removeMenu = function(restoreNav) {
panning = false;
menuOut = false;
// Reenable scrolling
$('body').css({
Function parallax
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.parallax = function () {
var window_width = $(window).width();
// Parallax Scripts
return this.each(function(i) {
var $this = $(this);
Function addMarking
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addMarking ( spread, filterFunc, formatter ) {
var element = document.createElement('div'),
out = '',
valueSizeClasses = [
Function hide
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide: function(e) {
TouchHandler.touchup(e);
var el = this;
var width = el.clientWidth * 1.4;
Function createYearLabel
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createYearLabel = function(override) {
var focusedYear = viewsetObject.year,
// If years selector is set to a literal "true", set it to 5. Otherwise
Function show
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function(e, element) {
// Disable right click
if (e.button === 2) {
return false;
Function start
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
// If it’s already started, do nothing.
if ( STATE && STATE.start ) return P