Function constructor
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
constructor(domElement: any,
objSetting: any,
funCallBack: any = () => {
},
SubscriptionID?: string) {
Function constructor
has 104 lines of code (exceeds 25 allowed). Consider refactoring.
constructor(domElement: any,
objSetting: any,
funCallBack: any = () => {
},
SubscriptionID?: string) {
Function watch
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
public watch() {
if (
this.domElement &&
typeof this.domElement === "object"
) {
ViewAbility
has 24 functions (exceeds 20 allowed). Consider refactoring.
export default class ViewAbility implements IViewAbility {
* @deprecated ViewAbility.numDocumentWidth was deprecated, please use UtilsDOMVisibility.numDocumentWidth instead
*/
File ViewAbility.ts
has 275 lines of code (exceeds 250 allowed). Consider refactoring.
"use strict";
* Import interfaces
*/
import IWindow from "../interfaces/IWindow";
Function watch
has 34 lines of code (exceeds 25 allowed). Consider refactoring.
public watch() {
if (
this.domElement &&
typeof this.domElement === "object"
) {
Consider simplifying this complex logical expression.
if (
typeof this.ID !== "string" &&
this.domElement &&
typeof this.domElement === "object" &&
this.domElement.nodeType === 1 &&
Consider simplifying this complex logical expression.
if (
domElement &&
typeof domElement === "object" &&
domElement.nodeType === 1 &&
domElement.parentElement &&
Consider simplifying this complex logical expression.
if (
(
domElement ||
typeof this.ID === "string"
) &&
debug
Regular Expression Denial of Service
"debug": {
"version": "2.2.0",
"dependencies": {
"ms": {
"version": "0.7.1"
debug
Regular Expression Denial of Service
"debug": {
"version": "2.2.0",
"dependencies": {
"ms": {
"version": "0.7.1"