Showing 6,856 of 14,752 total issues
Function tokenBase
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(stream, state) {
var ch = stream.next();
if (ch == "#" && state.startOfLine) {
stream.skipToEnd();
return "meta";
- Create a ticketCreate a ticket
Function updateLineGutter
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateLineGutter(cm, lineView, lineN, dims) {
if (lineView.gutter) {
lineView.node.removeChild(lineView.gutter);
lineView.gutter = null;
}
- Create a ticketCreate a ticket
Function onCopyCut
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onCopyCut(e) {
if (signalDOMEvent(cm, e)) { return }
if (cm.somethingSelected()) {
setLastCopied({lineWise: false, text: cm.getSelections()});
if (e.type == "cut") { cm.replaceSelection("", null, "cut"); }
- Create a ticketCreate a ticket
Function objectKeys
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var objectKeys = function () {
// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
if (!Object.keys) {
Object.keys = (function() {
var hasOwnProperty = Object.prototype.hasOwnProperty,
- Create a ticketCreate a ticket
Function bind
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MultipleSelection.prototype.bind = function (container, $container) {
var self = this;
MultipleSelection.__super__.bind.apply(this, arguments);
- Create a ticketCreate a ticket
Function _resolveWidth
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Select2.prototype._resolveWidth = function ($element, method) {
var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
if (method == 'resolve') {
var styleWidth = this._resolveWidth($element, 'style');
- Create a ticketCreate a ticket
Function resetView
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.resetView = function (params) {
var padding = 0;
if (params && params.height) {
this.options.height = params.height;
- Create a ticketCreate a ticket
Function createInput
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createInput: function(options) {
var TypeConstructor, typeOptions, input,
type = options.type;
//`date` is some kind of virtual type that is transformed to one of exact types
- Create a ticketCreate a ticket
Function partition
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.partition = function() {
var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
function position(node, x, dx, dy) {
var children = node.children;
node.x = x;
- Create a ticketCreate a ticket
Function _mouseCapture
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function(event, overrideHandle) {
var currentItem = null,
validHandle = false,
that = this;
- Create a ticketCreate a ticket
Function cancel
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancel: function() {
if(this.dragging) {
this._mouseUp({ target: null });
- Create a ticketCreate a ticket
Function _mouseStart
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var o = this.options;
//Create and append the visible helper
- Create a ticketCreate a ticket
Function _hideDatepicker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_hideDatepicker: function(input) {
var showAnim, duration, postProcess, onClose,
inst = this._curInst;
if (!inst || (input && inst !== $.data(input, "datepicker"))) {
- Create a ticketCreate a ticket
Function _dialogDatepicker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
var id, browserWidth, browserHeight, scrollX, scrollY,
inst = this._dialogInst; // internal instance
if (!inst) {
- Create a ticketCreate a ticket
Function pulsate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectPulsate = $.effects.effect.pulsate = function( o, done ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "show" ),
show = mode === "show",
hide = mode === "hide",
- Create a ticketCreate a ticket
Function effect
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
effect: function( /* effect, options, speed, callback */ ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ];
- Create a ticketCreate a ticket
Function _resetButton
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_resetButton: function() {
if ( this.type === "input" ) {
if ( this.options.label ) {
this.element.val( this.options.label );
}
- Create a ticketCreate a ticket
Function _createTitlebar
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createTitlebar: function() {
var uiDialogTitle;
this.uiDialogTitlebar = $( "<div>" )
.addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )
- Create a ticketCreate a ticket
Function slide
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectSlide = $.effects.effect.slide = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
- Create a ticketCreate a ticket
Function updateLineGutter
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateLineGutter(cm, lineView, lineN, dims) {
if (lineView.gutter) {
lineView.node.removeChild(lineView.gutter)
lineView.gutter = null
}
- Create a ticketCreate a ticket