airbnb/caravel

View on GitHub
superset-frontend/src/pages/DatasetCreation/index.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function AddDataset has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function AddDataset() {
  const [dataset, setDataset] = useReducer<
    Reducer<Partial<DatasetObject> | null, DSReducerActionType>
  >(datasetReducer, null);
  const [hasColumns, setHasColumns] = useState(false);
Severity: Major
Found in superset-frontend/src/pages/DatasetCreation/index.tsx - About 2 hrs to fix

    Function datasetReducer has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function datasetReducer(
      state: DatasetObject | null,
      action: DSReducerActionType,
    ): Partial<DatasetObject> | Schema | null {
      const trimmedState = {
    Severity: Minor
    Found in superset-frontend/src/pages/DatasetCreation/index.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status