Showing 5 of 32 total issues
File file-sharing.service.spec.ts
has 1552 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { TestBed, inject } from '@angular/core/testing';
import { FileSharingService } from './file-sharing.service';
// tslint:disable-next-line:max-line-length
import { Statistics, Configuration, ProcessInstance, ActivityInstance, ResourceInstance, Resource, Activity, Process, ResourceUtilization } from './process-statistics';
import { Parser } from 'xml2js';
Function cleanXML
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function cleanXML(xml) {
const isInt = /^-?\s*\d+$/,
isDig = /^(-?\s*\d+\.?\d*)$/,
radix = 10;
Function exports
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (config) {
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
Avoid deeply nested control flow statements. Open
Open
for (i = 0, s = -1, e = -1; i < l && e - s <= 15; ++i) {
if (value.charAt(i) > 0) {
if (s === -1) {
s = i;
} else {
Avoid deeply nested control flow statements. Open
Open
if (e - s <= 15) {
xml[node] = parseFloat(value);
}