Showing 357 of 7,143 total issues
File jquery-ui.js
has 11648 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.slider.js, jquery.ui.sortable.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */
Function 2
has a Cognitive Complexity of 1108 (exceeds 5 allowed). Consider refactoring. Open
},{}],2:[function(require,module,exports){
(function (global){
/*!
* The buffer module from node.js, for the browser.
*
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function layout
has 2782 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.layout = function (opts) {
var
// local aliases to global data
browser = $.layout.browser
File jquery.layout.js
has 4022 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* @preserve
* jquery.layout 1.4.4
* $Date: 2014-11-29 08:00:00 (Sat, 29 November 2014) $
* $Rev: 1.0404 $
Function 2
has 1389 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],2:[function(require,module,exports){
(function (global){
/*!
* The buffer module from node.js, for the browser.
*
File urlsafe-base64.bundle.js
has 1584 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict'
exports.byteLength = byteLength
exports.toByteArray = toByteArray
File app.component.ts
has 689 lines of code (exceeds 250 allowed). Consider refactoring. Open
import { Component, OnInit, OnChanges, SimpleChange } from "@angular/core";
import { Subscription } from "rxjs/Subscription";
import { NgForm } from "@angular/forms";
import { AppbaseService } from "./shared/appbase.service";
import { StorageService } from "./shared/storage.service";
Function 3
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
},{"base64-js":1,"ieee754":3,"isarray":4}],3:[function(require,module,exports){
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m
var eLen = nBytes * 8 - mLen - 1
var eMax = (1 << eLen) - 1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function changeType
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
changeType(val) {
//this.mapping.resultQuery.result = [];
var availableFields: any = [];
var propInfo: any;
var allMappings = this.mapping[this.config.appname].mappings;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _create
has 194 lines of code (exceeds 25 allowed). Consider refactoring. Open
_create: function() {
// Some browsers only repeat keydown events, not keypress events,
// so we use the suppressKeyPress flag to determine if we've already
// handled the keydown event. #7269
// Unfortunately the code for & in keypress is the same as the up arrow,
Function buildQuery
has 178 lines of code (exceeds 25 allowed). Consider refactoring. Open
buildQuery() {
var self = this;
var results = this.result.resultQuery.result;
var es_final = {};
Function _generateHTML
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
_generateHTML: function(inst) {
var today = new Date();
today = this._daylightSavingAdjust(
new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
var isRTL = this._get(inst, 'isRTL');
File queryBlocks.component.ts
has 436 lines of code (exceeds 250 allowed). Consider refactoring. Open
import {
Component,
OnInit,
OnChanges,
EventEmitter,
Function position
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.position = function( options ) {
if ( !options || !options.of ) {
return _position.apply( this, arguments );
}
Function size
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.effects.effect.size = function( o, done ) {
// Create element
var original, baseline, factor,
el = $( this ),
Function _initContainer
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
, _initContainer = function () {
var
N = $N[0]
, $H = $("html")
, tag = sC.tagName = N.tagName
Function _create
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
_create: function() {
var i, handleCount,
o = this.options,
existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",
Function _create
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
_create: function() {
this.element.closest( "form" )
.unbind( "reset" + this.eventNamespace )
.bind( "reset" + this.eventNamespace, formResetHandler );
Function parseDate
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
parseDate: function (format, value, settings) {
if (format == null || value == null)
throw 'Invalid arguments';
value = (typeof value == 'object' ? value.toString() : value + '');
if (value == '')
Function initResizable
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
, initResizable = function (panes) {
var draggingAvailable = $.layout.plugins.draggable
, side // set in start()
;
panes = panes ? panes.split(",") : _c.borderPanes;