Showing 383 of 1,099 total issues
Function DataTable
has a Cognitive Complexity of 897 (exceeds 5 allowed). Consider refactoring. Open
var DataTable = (function () {
function DataTable(el, domHandler, differs, renderer, changeDetector, objectUtils, zone) {
this.el = el;
this.domHandler = domHandler;
this.differs = differs;
- 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 Calendar
has a Cognitive Complexity of 550 (exceeds 5 allowed). Consider refactoring. Open
var Calendar = (function () {
function Calendar(el, domHandler, renderer, cd) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
- 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 DataTable
has 1599 lines of code (exceeds 25 allowed). Consider refactoring. Open
var DataTable = (function () {
function DataTable(el, domHandler, differs, renderer, changeDetector, objectUtils, zone) {
this.el = el;
this.domHandler = domHandler;
this.differs = differs;
File datatable.js
has 2364 lines of code (exceeds 250 allowed). Consider refactoring. Open
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
Function Calendar
has 1077 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Calendar = (function () {
function Calendar(el, domHandler, renderer, cd) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function Tree
has a Cognitive Complexity of 260 (exceeds 5 allowed). Consider refactoring. Open
var Tree = (function () {
function Tree(dragDropService) {
this.dragDropService = dragDropService;
this.selectionChange = new core_1.EventEmitter();
this.onNodeSelect = new core_1.EventEmitter();
- 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 InputMask
has a Cognitive Complexity of 219 (exceeds 5 allowed). Consider refactoring. Open
var InputMask = (function () {
function InputMask(el, domHandler) {
this.el = el;
this.domHandler = domHandler;
this.type = 'text';
- 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 PickList
has a Cognitive Complexity of 211 (exceeds 5 allowed). Consider refactoring. Open
var PickList = (function () {
function PickList(el, domHandler, objectUtils) {
this.el = el;
this.domHandler = domHandler;
this.objectUtils = objectUtils;
- 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 AutoComplete
has a Cognitive Complexity of 192 (exceeds 5 allowed). Consider refactoring. Open
var AutoComplete = (function () {
function AutoComplete(el, domHandler, renderer, objectUtils, cd, differs) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
- 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
File calendar.js
has 1362 lines of code (exceeds 250 allowed). Consider refactoring. Open
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
Function TreeTable
has a Cognitive Complexity of 163 (exceeds 5 allowed). Consider refactoring. Open
var TreeTable = (function () {
function TreeTable(el, domHandler, changeDetector, renderer) {
this.el = el;
this.domHandler = domHandler;
this.changeDetector = changeDetector;
- 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 Dropdown
has a Cognitive Complexity of 123 (exceeds 5 allowed). Consider refactoring. Open
var Dropdown = (function () {
function Dropdown(el, domHandler, renderer, cd, objectUtils, zone) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
- 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 Listbox
has a Cognitive Complexity of 121 (exceeds 5 allowed). Consider refactoring. Open
var Listbox = (function () {
function Listbox(el, domHandler, objectUtils, cd) {
this.el = el;
this.domHandler = domHandler;
this.objectUtils = objectUtils;
- 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 MultiSelect
has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring. Open
var MultiSelect = (function () {
function MultiSelect(el, domHandler, renderer, differs, objectUtils, cd) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
- 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 OrderList
has a Cognitive Complexity of 104 (exceeds 5 allowed). Consider refactoring. Open
var OrderList = (function () {
function OrderList(el, domHandler, objectUtils) {
this.el = el;
this.domHandler = domHandler;
this.objectUtils = objectUtils;
- 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 InputMask
has 418 lines of code (exceeds 25 allowed). Consider refactoring. Open
var InputMask = (function () {
function InputMask(el, domHandler) {
this.el = el;
this.domHandler = domHandler;
this.type = 'text';
Function AutoComplete
has 400 lines of code (exceeds 25 allowed). Consider refactoring. Open
var AutoComplete = (function () {
function AutoComplete(el, domHandler, renderer, objectUtils, cd, differs) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function Dialog
has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring. Open
var Dialog = (function () {
function Dialog(el, domHandler, renderer, zone) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
- 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 PickList
has 378 lines of code (exceeds 25 allowed). Consider refactoring. Open
var PickList = (function () {
function PickList(el, domHandler, objectUtils) {
this.el = el;
this.domHandler = domHandler;
this.objectUtils = objectUtils;
Function ColorPicker
has 366 lines of code (exceeds 25 allowed). Consider refactoring. Open
var ColorPicker = (function () {
function ColorPicker(el, domHandler, renderer, cd) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;