Showing 208 of 10,177 total issues
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function on( elem, types, selector, data, fn, one ) {
var origFn, type;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {
- Create a ticketCreate a ticket
Function PromisePolyfill
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PromisePolyfill = function(executor) {
if (!(this instanceof PromisePolyfill)) throw new Error("Promise must be called with `new`")
if (typeof executor !== "function") throw new TypeError("executor must be a function")
var self = this, resolvers = [], rejectors = [], resolveCurrent = handler(resolvers, true), rejectCurrent = handler(rejectors, false)
var instance = self._instance = {resolvers: resolvers, rejectors: rejectors}
- Create a ticketCreate a ticket
Function removeNode
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function removeNode(parent, vnode3) {
var mask = 0
var original = vnode3.state
var stateResult, attrsResult
if (typeof vnode3.tag !== "string" && typeof vnode3.state.onbeforeremove === "function") {
- Create a ticketCreate a ticket
Function execSelector
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function execSelector(state, vnode) {
var attrs = vnode.attrs
var children = Vnode.normalizeChildren(vnode.children)
var hasClass = hasOwn.call(attrs, "class")
var className = hasClass ? attrs.class : attrs.className
- Create a ticketCreate a ticket
Function toggleClass
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value;
if ( typeof stateVal === "boolean" && type === "string" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
- Create a ticketCreate a ticket
Function show
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.show = function (_relatedTarget) {
var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e)
- Create a ticketCreate a ticket
Function onload
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.onload = function() {
m.mount(document.getElementById("app"), {
oninit: function() {
const config = new Config(localStorage);
- Create a ticketCreate a ticket
Function backdrop
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Modal.prototype.backdrop = function (callback) {
var that = this
var animate = this.$element.hasClass('fade') ? 'fade' : ''
if (this.isShown && this.options.backdrop) {
- Create a ticketCreate a ticket
Function adjustCSS
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function adjustCSS( elem, prop, valueParts, tween ) {
var adjusted,
scale = 1,
maxIterations = 20,
currentValue = tween ?
- Create a ticketCreate a ticket
Function activate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
- Create a ticketCreate a ticket
Function oninit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function() {
const config = new Config(localStorage);
this.gitlab_path = config.gitlabPath;
this.api_path = config.apiPath;
- Create a ticketCreate a ticket
Function dispatch
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dispatch: function( nativeEvent ) {
// Make a writable jQuery.Event from the native event object
var event = jQuery.event.fix( nativeEvent );
- Create a ticketCreate a ticket
Function ajaxHandleResponses
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxHandleResponses( s, jqXHR, responses ) {
var ct, type, finalDataType, firstDataType,
contents = s.contents,
dataTypes = s.dataTypes;
- Create a ticketCreate a ticket
Function _15
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _15 = function(render0, schedule, console) {
var subscriptions = []
var rendering = false
var pending = false
function sync() {
- Create a ticketCreate a ticket
Function makeRequest
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeRequest(factory) {
return function(url, args) {
if (typeof url !== "string") { args = url; url = url.url }
else if (args == null) args = {}
var promise1 = new Promise(function(resolve, reject) {
- Create a ticketCreate a ticket
Function mightThrow
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mightThrow = function() {
var returned, then;
// Support: Promises/A+ section 2.3.3.3.3
// https://promisesaplus.com/#point-59
- Create a ticketCreate a ticket
Function show
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return
var activesData
var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
- Create a ticketCreate a ticket
Function view
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
view: function(vnode5) {
var options = vnode5.attrs.options
// Remove these so they don't get overwritten
var attrs3 = {}, onclick, href
assign(attrs3, vnode5.attrs)
- Create a ticketCreate a ticket
Function makeLisIndices
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeLisIndices(a) {
var result = [0]
var u = 0, v = 0, i = 0
var il = lisTemp.length = a.length
for (var i = 0; i < il; i++) lisTemp[i] = a[i]
- Create a ticketCreate a ticket
Function oninit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function() {
const config = new Config(localStorage);
this.gitlab_path = config.gitlabPath;
this.api_path = config.apiPath;
- Create a ticketCreate a ticket