Showing 6,856 of 14,752 total issues
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 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 _createPanels
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createPanels() {
let port = window.port || -1;
let schema = schemas.genericModel;
return {
generalInformation: new FormPanel("General", schema.generalInformation, this._metadata.generalInformation, port),
- Create a ticketCreate a ticket
Function _createPanel
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createPanel(menu, modelHandler) {
let O = this;
_log('MODAL DETAILS / _createPanel: ' + menu.id);
let $panel = null;
- Create a ticketCreate a ticket
Function metaData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get metaData() {
try{
// generalInformation
this._metadata.generalInformation = this.panels.generalInformation.data;
this._metadata.generalInformation.modelCategory = this.panels.modelCategory.data;
- 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 bind
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Function.prototype.bind = function bind(that) {
var target = this;
var slice = [].slice;
- Create a ticketCreate a ticket
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