airbnb/caravel

View on GitHub
superset-frontend/src/explore/controlUtils/standardizedFormData.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function transform has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  transform(
    targetVizType: string,
    exploreState: Record<string, any>,
  ): {
    formData: QueryFormData;
Severity: Minor
Found in superset-frontend/src/explore/controlUtils/standardizedFormData.ts - About 1 hr to fix

    Function constructor has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      constructor(sourceFormData: QueryFormData) {
        /*
         * Support form_data for smooth switching between different viz
         * */
        const formData = Object.freeze(sourceFormData);
    Severity: Minor
    Found in superset-frontend/src/explore/controlUtils/standardizedFormData.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status