airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Function parseResult has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  result.reduce((slices, slice: any) => {
    let form_data = JSON.parse(slice.params);
    form_data = {
      ...form_data,
      // force using datasource stored in relational table prop
Severity: Minor
Found in superset-frontend/src/dashboard/actions/sliceEntities.ts - About 1 hr to fix

    Function menuItems has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const menuItems = useMemo(() => {
        const items: DropDownSelectableProps['menuItems'] = [];
    
        if (isCrossFiltersFeatureEnabled && canEdit) {
          items.push({

      Function filters has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        const filters: Filters = useMemo(() => {
          const filters_list = [
            {
              Header: t('Name'),
              id: 'name',
      Severity: Minor
      Found in superset-frontend/src/pages/Tags/index.tsx - About 1 hr to fix

        Function loadQueryData has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          async loadQueryData(
            formData: QueryFormData,
            options?: Partial<RequestConfig>,
          ): Promise<QueryData[]> {
            const { viz_type: visType } = formData;

          Function boxplotOperator has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const boxplotOperator: PostProcessingFactory<PostProcessingBoxplot> = (
            formData,
            queryObject,
          ) => {
            const { groupby, whiskerOptions } = formData;

            Function sortOperator has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export const sortOperator: PostProcessingFactory<PostProcessingSort> = (
              formData,
              queryObject,
            ) => {
              // the sortOperator only used in the barchart v2

              Function retry_call has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def retry_call(  # pylint: disable=too-many-arguments
              Severity: Major
              Found in superset/utils/retries.py - About 1 hr to fix

                Function prophet has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def prophet(  # pylint: disable=too-many-arguments
                Severity: Major
                Found in superset/utils/pandas_postprocessing/prophet.py - About 1 hr to fix

                  Function log has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def log(  # pylint: disable=too-many-arguments,too-many-locals
                  Severity: Major
                  Found in superset/utils/log.py - About 1 hr to fix

                    Function cache_dashboard_screenshot has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def cache_dashboard_screenshot(  # pylint: disable=too-many-arguments
                    Severity: Major
                    Found in superset/tasks/thumbnails.py - About 1 hr to fix

                      Function rolling has 9 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def rolling(  # pylint: disable=too-many-arguments
                      Severity: Major
                      Found in superset/utils/pandas_postprocessing/rolling.py - About 1 hr to fix

                        Function get_sql_results has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def get_sql_results(  # pylint: disable=too-many-arguments
                        Severity: Major
                        Found in superset/sql_lab.py - About 1 hr to fix

                          Function select_star has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def select_star(  # pylint: disable=too-many-arguments
                          Severity: Major
                          Found in superset/db_engine_specs/presto.py - About 1 hr to fix

                            Function select_star has 9 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def select_star(  # pylint: disable=too-many-arguments
                            Severity: Major
                            Found in superset/db_engine_specs/hive.py - About 1 hr to fix

                              Function select_star has 9 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def select_star(  # pylint: disable=too-many-arguments
                              Severity: Major
                              Found in superset/db_engine_specs/base.py - About 1 hr to fix

                                Function select_star has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def select_star(  # pylint: disable=too-many-arguments
                                Severity: Major
                                Found in superset/db_engine_specs/bigquery.py - About 1 hr to fix

                                  Function create has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def create(  # pylint: disable=too-many-arguments
                                  Severity: Major
                                  Found in superset/common/query_context_factory.py - About 1 hr to fix

                                    Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def __init__(
                                    Severity: Major
                                    Found in superset/commands/sql_lab/execute.py - About 1 hr to fix

                                      Function mouseout has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function mouseout(b, i) {
                                          tooltip.hidden(true);
                                          const $this = d3.select(this);
                                          $this.classed('hover', false);
                                          if (clickId < 0 && !inTransition) {
                                      Severity: Minor
                                      Found in superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js - About 1 hr to fix

                                        Function mouseover has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function mouseover(b, i) {
                                            tooltip.data(tooltipData(b, i, datum)).hidden(false);
                                            const $this = d3.select(this);
                                            $this.classed('hover', true);
                                            if (clickId < 0 && !inTransition) {
                                        Severity: Minor
                                        Found in superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language