Showing 383 of 1,099 total issues
Function Tooltip
has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring. Open
var Tooltip = (function () {
function Tooltip(el, domHandler, renderer) {
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 ObjectUtils
has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring. Open
var ObjectUtils = (function () {
function ObjectUtils() {
}
ObjectUtils.prototype.equals = function (obj1, obj2, field) {
if (field)
- 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 DomHandler
has a Cognitive Complexity of 89 (exceeds 5 allowed). Consider refactoring. Open
var DomHandler = (function () {
function DomHandler() {
this.calculatedScrollbarWidth = null;
}
DomHandler.prototype.addClass = function (element, className) {
- 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 354 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Dropdown = (function () {
function Dropdown(el, domHandler, renderer, cd, objectUtils, zone) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function Tree
has 346 lines of code (exceeds 25 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();
Function ColorPicker
has a Cognitive Complexity of 86 (exceeds 5 allowed). Consider refactoring. Open
var ColorPicker = (function () {
function ColorPicker(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 FileUpload
has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring. Open
var FileUpload = (function () {
function FileUpload(domHandler, sanitizer, zone) {
this.domHandler = domHandler;
this.sanitizer = sanitizer;
this.zone = zone;
- 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 DomHandler
has 329 lines of code (exceeds 25 allowed). Consider refactoring. Open
var DomHandler = (function () {
function DomHandler() {
this.calculatedScrollbarWidth = null;
}
DomHandler.prototype.addClass = function (element, className) {
File tree.js
has 708 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 Dialog
has 321 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Dialog = (function () {
function Dialog(el, domHandler, renderer, zone) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function Slider
has a Cognitive Complexity of 79 (exceeds 5 allowed). Consider refactoring. Open
var Slider = (function () {
function Slider(el, domHandler, renderer, ngZone) {
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 ConfirmDialog
has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring. Open
var ConfirmDialog = (function () {
function ConfirmDialog(el, domHandler, renderer, confirmationService, zone) {
var _this = this;
this.el = el;
this.domHandler = domHandler;
- 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 277 lines of code (exceeds 25 allowed). Consider refactoring. Open
var MultiSelect = (function () {
function MultiSelect(el, domHandler, renderer, differs, objectUtils, cd) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function Schedule
has 269 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Schedule = (function () {
function Schedule(el, differs) {
this.el = el;
this.aspectRatio = 1.35;
this.defaultView = 'month';
File autocomplete.js
has 613 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 Tooltip
has 260 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Tooltip = (function () {
function Tooltip(el, domHandler, renderer) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function FileUpload
has 260 lines of code (exceeds 25 allowed). Consider refactoring. Open
var FileUpload = (function () {
function FileUpload(domHandler, sanitizer, zone) {
this.domHandler = domHandler;
this.sanitizer = sanitizer;
this.zone = zone;
Function Listbox
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Listbox = (function () {
function Listbox(el, domHandler, objectUtils, cd) {
this.el = el;
this.domHandler = domHandler;
this.objectUtils = objectUtils;
Function Slider
has 255 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Slider = (function () {
function Slider(el, domHandler, renderer, ngZone) {
this.el = el;
this.domHandler = domHandler;
this.renderer = renderer;
Function Spinner
has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring. Open
var Spinner = (function () {
function Spinner(el, domHandler) {
this.el = el;
this.domHandler = domHandler;
this.onChange = 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"