airbnb/caravel

View on GitHub
superset-frontend/src/dataMask/reducer.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function dataMaskReducer has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  (draft: DataMaskStateWithId, action: AnyDataMaskAction) => {
    const cleanState = {};
    switch (action.type) {
      case CLEAR_DATA_MASK_STATE:
        return cleanState;
Severity: Minor
Found in superset-frontend/src/dataMask/reducer.ts - About 1 hr to fix

    Function fillNativeFilters has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function fillNativeFilters(
      filterConfig: FilterConfiguration,
      mergedDataMask: DataMaskStateWithId,
      draftDataMask: DataMaskStateWithId,
      initialDataMask?: DataMaskStateWithId,
    Severity: Minor
    Found in superset-frontend/src/dataMask/reducer.ts - About 1 hr to fix

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

        filterConfig: FilterConfiguration,
        mergedDataMask: DataMaskStateWithId,
        draftDataMask: DataMaskStateWithId,
        initialDataMask?: DataMaskStateWithId,
        currentFilters?: Filters,
      Severity: Minor
      Found in superset-frontend/src/dataMask/reducer.ts - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status