Showing 6,856 of 14,752 total issues
Function tokenBase
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var tokenBase = function(stream/*, state*/) {
var ch = stream.next();
if (ch ==='"') {
stream.match(/.*?"/);
return "string";
- Create a ticketCreate a ticket
Function base
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function base(stream, state) {
if (stream.eatSpace()) {type = "ws"; return null;}
if (stream.match(numLiteral)) return "number";
var ch = stream.next();
if (ch == "\\") ch = stream.next();
- Create a ticketCreate a ticket
Function findFatArrow
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findFatArrow(stream, state) {
if (state.fatArrowAt) state.fatArrowAt = null;
var arrow = stream.string.indexOf("=>", stream.start);
if (arrow < 0) return;
- Create a ticketCreate a ticket
Function token
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function(stream, state) {
if (stream.sol()) {
if (state.context && state.context.align == null) state.context.align = false;
state.indent = stream.indentation();
}
- Create a ticketCreate a ticket
Function createRe
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createRe: function(name) {
switch (name) {
case "drawTable":
return REs.makeRe("^", REs.single.drawTable, "$");
case "html":
- Create a ticketCreate a ticket
Function token
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function(stream, state) {
var ctx = state.context;
if (stream.sol()) {
if (ctx.align == null) ctx.align = false;
state.indented = stream.indentation();
- Create a ticketCreate a ticket
Function _refresh
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async _refresh(index, modelMetadata ) {
let O = this;
let rowData = O._tableData[index];
rowData.modelMetadata = modelMetadata;
let modelName = O._getData( modelMetadata, 'generalInformation', 'name' );
- Create a ticketCreate a ticket
Function _initSelect2
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initSelect2 ( container ) {
let O = this;
_log( 'UI / _initSelect2' );
let $elems = $( container ).length > 0 ? $( container ).find( 'select[data-sel2]' ) : $( 'select[data-sel2]' );
- Create a ticketCreate a ticket
Function updateNavArrows
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateNavArrows: function(){
if (!this._allow_update)
return;
var d = new Date(this.viewDate),
- Create a ticketCreate a ticket
Function dateUpdated
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dateUpdated: function(e){
// `this.updating` is a workaround for preventing infinite recursion
// between `changeDate` triggering and `setUTCDate` calling. Until
// there is a better mechanism.
if (this.updating)
- Create a ticketCreate a ticket
Function _createTableToolbar
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createTableToolbar() {
let O = this;
_log('TABLE / _createTableToolbar');
if (O.opts.showToggle || O.opts.showColumns) {
- Create a ticketCreate a ticket
Function circle
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.geo.circle = function() {
var origin = [ 0, 0 ], angle, precision = 6, interpolate;
function circle() {
var center = typeof origin === "function" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = [];
interpolate(null, null, 1, {
- Create a ticketCreate a ticket
Function token
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function token() {
if (I >= N) return EOF;
if (eol) return eol = false, EOL;
var j = I;
if (text.charCodeAt(j) === 34) {
- Create a ticketCreate a ticket
Function destroy
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Select2.prototype.destroy = function () {
this.$container.remove();
if (this.$element[0].detachEvent) {
this.$element[0].detachEvent('onpropertychange', this._syncA);
- Create a ticketCreate a ticket
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),
- Create a ticketCreate a ticket
Function brush
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function brush(g) {
g.each(function() {
var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
var background = g.selectAll(".background").data([ 0 ]);
background.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");
- Create a ticketCreate a ticket
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,
- Create a ticketCreate a ticket
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";
- Create a ticketCreate a ticket
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
- Create a ticketCreate a ticket
Function add_constant_parameter
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_constant_parameter(param) {
var condition_attribute = ' data-status="1" ';
var class_attribute = ' class="col-sm-1 item-first some-remove" ';
var editable = ' class="textEdit editable editable-click" ';
- Create a ticketCreate a ticket