bptlab/scylla-ui

View on GitHub

Showing 5 of 32 total issues

File file-sharing.service.spec.ts has 1552 lines of code (exceeds 250 allowed). Consider refactoring.
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';
Severity: Major
Found in src/app/services/file-sharing/file-sharing.service.spec.ts - About 4 days to fix

    Function cleanXML has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      export function cleanXML(xml) {
        const isInt = /^-?\s*\d+$/,
              isDig = /^(-?\s*\d+\.?\d*)$/,
              radix = 10;
    
    
    Severity: Major
    Found in src/app/services/file-sharing/xml-postprocessor.ts - About 2 hrs to fix

      Function exports has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function (config) {
        config.set({
          // enable / disable watching file and executing tests whenever any file changes
          autoWatch: true,
      
      
      Severity: Minor
      Found in karma.conf.js - About 1 hr to fix

        Avoid deeply nested control flow statements.
        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 {
        Severity: Major
        Found in src/app/services/file-sharing/xml-postprocessor.ts - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (e - s <= 15) {
                                      xml[node] = parseFloat(value);
                                  }
          Severity: Major
          Found in src/app/services/file-sharing/xml-postprocessor.ts - About 45 mins to fix
            Severity
            Category
            Status
            Source
            Language