myems-web/src/components/dashboard-alt/TopProducts.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function getOption has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getOption = (data, colors, isDark) => {
  const grays = getGrays(isDark);
  return {
    dataset: { source: data },
    tooltip: {
Severity: Major
Found in myems-web/src/components/dashboard-alt/TopProducts.js - About 2 hrs to fix

    Function position has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

          position(pos, params, dom, rect, size) {
    Severity: Minor
    Found in myems-web/src/components/dashboard-alt/TopProducts.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status