qlik-oss/sn-scatter-plot

View on GitHub
src/custom-tooltip/utils.js

Summary

Maintainability
B
4 hrs
Test Coverage
C
75%

File utils.js has 329 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import rtlUtils from '../utils/rtl-utils';
import TOOLTIP from './constants';
import customTooltipPromises from './promises';
import tooltipChart from './chart/index';

Severity: Minor
Found in src/custom-tooltip/utils.js - About 3 hrs to fix

    Consider simplifying this complex logical expression.
    Open

          if (initialDataSrc && !node.data?.customTooltipAttrExps && !keysPerType[node.type]) {
            // populate allDataNodes variable here, chart.findShapes can affect the performance
            if (!allDataNodes) {
              allDataNodes = [];
              Object.keys(keysPerType).forEach((type) => {
    Severity: Major
    Found in src/custom-tooltip/utils.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status