Showing 357 of 7,143 total issues
Function addPane
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, addPane = function (pane, force) {
if ( !force && !isInitialized() ) return;
var
o = options[pane]
, s = state[pane]
AppComponent
has 36 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Component({
selector: "my-app",
templateUrl: "./app/app.component.html",
providers: [AppbaseService, StorageService, DocService]
})
Function sizeHandles
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, sizeHandles = function (evt_or_panes) {
var panes = evtPane.call(this, evt_or_panes)
panes = panes ? panes.split(",") : _c.borderPanes;
$.each(panes, function (i, pane) {
Function sizePane
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, sizePane = function (evt_or_pane, size, skipCallback, noAnimation, force) {
if (!isInitialized()) return;
var pane = evtPane.call(this, evt_or_pane) // probably NEVER called from event?
, o = options[pane]
, s = state[pane]
Function sizeMidPanes
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, sizeMidPanes = function (panes, skipCallback, force) {
panes = (panes ? panes : "east,west,center").split(",");
$.each(panes, function (i, pane) {
if (!$Ps[pane]) return; // NO PANE - skip
Function _create
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
this.originalTitle = this.element.attr( "title" );
// #5742 - .attr() might return a DOMElement
if ( typeof this.originalTitle !== "string" ) {
this.originalTitle = "";
Consider simplifying this complex logical expression. Open
Open
if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
inst.snapElements[i].snapping = false;
continue;
}
Function initOptions
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, initOptions = function () {
var data, d, pane, key, val, i, c, o;
// reprocess user's layout-options to have correct options sub-key structure
opts = $.layout.transformData( opts, true ); // panes = default subkey
Function swapPanes
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, swapPanes = function (evt_or_pane1, pane2) {
if (!isInitialized()) return;
var pane1 = evtPane.call(this, evt_or_pane1);
// change state.edge NOW so callbacks can know where pane is headed...
state[pane1].edge = pane2;
Function changeType
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
changeType(val) {
//this.mapping.resultQuery.result = [];
var availableFields: any = [];
var propInfo: any;
var allMappings = this.mapping[this.config.appname].mappings;
Function 1
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
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
- 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 checkAvailableFields
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
Open
checkAvailableFields() {
var fields = this.allFields;
var allMappings = this.mapping[this.config.appname].mappings;
if (this.joiningQuery[this.joiningQueryParam] == 'nested') {
var mapObj = {};
- 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 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var that = this, o = this.options;
this.element.addClass("ui-resizable");
Function initHandles
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, initHandles = function (panes) {
panes = panes ? panes.split(",") : _c.borderPanes;
// create toggler DIVs for each pane, and set object pointers for them, eg: $R.north = north toggler DIV
$.each(panes, function (i, pane) {
Function 1
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function _keydown
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
var match, prev, character, skip, regex,
preventDefault = true;
function escape( value ) {
Function _create
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var accordionId = this.accordionId = "ui-accordion-" +
(this.element.attr( "id" ) || ++uid),
options = this.options;
Function Datepicker
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Datepicker() {
this.debug = false; // Change this to true to start debugging
this._curInst = null; // The current instance in use
this._keyEvent = false; // If the last event was a key event
this._disabledInputs = []; // List of date picker inputs that have been disabled
Function open
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, open = function (evt_or_pane, slide, noAnimation, noAlert) {
if (!isInitialized()) return;
var pane = evtPane.call(this, evt_or_pane)
, $P = $Ps[pane]
, $R = $Rs[pane]
Function 3
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
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