bptlab/scylla-ui

View on GitHub
src/app/services/file-sharing/xml-postprocessor.ts

Summary

Maintainability
A
3 hrs
Test Coverage

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

    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

        There are no issues that match your filters.

        Category
        Status