airbnb/caravel

View on GitHub
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/common.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

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

export function commonLayerProps(
  formData: QueryFormData,
  setTooltip: (tooltip: TooltipProps['tooltip']) => void,
  setTooltipContent: (content: JsonObject) => ReactNode,
  onSelect?: (value: JsonValue) => void,

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

    export function getAggFunc(
      type = 'sum',
      accessor: ((object: any) => number | undefined) | null = null,
    ) {
      if (type === 'count') {

      There are no issues that match your filters.

      Category
      Status