Showing 14,752 of 14,752 total issues
Function itemsByValue
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
itemsByValue: function(value, sourceData, valueProp) {
if(!sourceData || value === null) {
return [];
}
- Create a ticketCreate a ticket
Function select2
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.select2 = function (options) {
options = options || {};
if (typeof options === 'object') {
this.each(function () {
- Create a ticketCreate a ticket
Function moveMonth
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
moveMonth: function(date, dir){
if (!dir) return date;
var new_date = new Date(date.valueOf()),
day = new_date.getUTCDate(),
month = new_date.getUTCMonth(),
- Create a ticketCreate a ticket
Function save
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save: function(submitValue) {
//try parse composite pk defined as json string in data-pk
this.options.pk = $.fn.editableutils.tryParseJson(this.options.pk, true);
var pk = (typeof this.options.pk === 'function') ? this.options.pk.call(this.options.scope) : this.options.pk,
- Create a ticketCreate a ticket
Function renderList
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderList: function() {
this.$input.empty();
var fillItems = function($el, data) {
var attr;
- Create a ticketCreate a ticket
Function d3_geo_pointInPolygon
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geo_pointInPolygon(point, polygon) {
var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
d3_geo_areaRingSum.reset();
for (var i = 0, n = polygon.length; i < n; ++i) {
var ring = polygon[i], m = ring.length;
- Create a ticketCreate a ticket
Function brushmove
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function brushmove() {
var point = d3.mouse(target), moved = false;
if (offset) {
point[0] += offset[0];
point[1] += offset[1];
- Create a ticketCreate a ticket
Function _combineLikeTerms
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Expression.prototype._combineLikeTerms = function() {
function alreadyEncountered(term, encountered) {
for (var i = 0; i < encountered.length; i++) {
if (term.canBeCombinedWith(encountered[i])) {
return true;
- Create a ticketCreate a ticket
Function _setOption
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
if ( key === "active" ) {
// _activate() will handle invalid values and update this.options
this._activate( value );
return;
- Create a ticketCreate a ticket
Function _updateVirtualBoundaries
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateVirtualBoundaries: function(forceAspectRatio) {
var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
o = this.options;
b = {
- Create a ticketCreate a ticket
Function getDimensions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDimensions( elem ) {
var raw = elem[0];
if ( raw.nodeType === 9 ) {
return {
width: elem.width(),
- Create a ticketCreate a ticket
Function left
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
- Create a ticketCreate a ticket
Function top
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
- Create a ticketCreate a ticket
Function create_accordion
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create_accordion() {
var accordion = '';
for (var numModel = 0; numModel < models.length; numModel++) {
- Create a ticketCreate a ticket
Function refresh
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
//See #8237 & #8828
var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
if ( isDisabled !== this.options.disabled ) {
- Create a ticketCreate a ticket
Function _setupHeightStyle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupHeightStyle: function( heightStyle ) {
var maxHeight,
parent = this.element.parent();
if ( heightStyle === "fill" ) {
- Create a ticketCreate a ticket
Function scrollPosIntoView
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scrollPosIntoView(cm, pos, end, margin) {
if (margin == null) { margin = 0 }
var rect
if (!cm.options.lineWrapping && pos == end) {
// Set pos and end to the cursor positions around the character pos sticks to
- Create a ticketCreate a ticket
Function skipAtomicInner
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
var line = getLine(doc, pos.line)
if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {
var sp = line.markedSpans[i], m = sp.marker
if ((sp.from == null || (m.inclusiveLeft ? sp.from <= pos.ch : sp.from < pos.ch)) &&
- Create a ticketCreate a ticket
Function onMouseDown
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onMouseDown(e) {
var cm = this, display = cm.display
if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }
display.input.ensurePolled()
display.shift = e.shiftKey
- Create a ticketCreate a ticket
Function scrollPosIntoView
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scrollPosIntoView(cm, pos, end, margin) {
if (margin == null) { margin = 0 }
var rect
if (!cm.options.lineWrapping && pos == end) {
// Set pos and end to the cursor positions around the character pos sticks to
- Create a ticketCreate a ticket