superset-frontend/packages/superset-ui-chart-controls/src/operators/renameOperator.ts
Function renameOperator
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const renameOperator: PostProcessingFactory<PostProcessingRename> = (
formData,
queryObject,
) => {
const metrics = ensureIsArray(queryObject.metrics);
Consider simplifying this complex logical expression. Open
Open
if (
metrics.length === 1 &&
columns.length > 0 &&
xAxisLabel &&
!(