airbnb/caravel

View on GitHub
superset-frontend/packages/superset-ui-chart-controls/src/operators/renameOperator.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function renameOperator has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const renameOperator: PostProcessingFactory<PostProcessingRename> = (
  formData,
  queryObject,
) => {
  const metrics = ensureIsArray(queryObject.metrics);

    Consider simplifying this complex logical expression.
    Open

      if (
        metrics.length === 1 &&
        columns.length > 0 &&
        xAxisLabel &&
        !(

      There are no issues that match your filters.

      Category
      Status