airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Avoid too many return statements within this function.
Open

    return (
      props.adhocFilter.clause !== Clauses.Having ||
      HAVING_OPERATORS.indexOf(operator) !== -1
    );

    Avoid too many return statements within this function.
    Open

                        return safeHtmlSpan(value);
    Severity: Major
    Found in superset-frontend/src/explore/components/DataTableControl/index.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                        return String(value);
      Severity: Major
      Found in superset-frontend/src/explore/components/DataTableControl/index.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                                return {
                                  ...obj,
                                  error_type,
                                  description: message || extra.issue_codes[0]?.message,
                                };
        Severity: Major
        Found in superset-frontend/src/views/CRUD/hooks.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return '';
          Severity: Major
          Found in superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return (
                <ResultlessStyles>
                  <div>{!progressBar && <Loading position="normal" />}</div>
                  {/* show loading bar whenever progress bar is completed but needs time to render */}
                  <div>{query.progress === 100 && <Loading position="normal" />}</div>
            Severity: Major
            Found in superset-frontend/src/SqlLab/components/ResultSet/index.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return (otherTabFilters || []).map(flt => ({
                    id: flt.col,
                    operator: flt.opr,
                    value: flt.value,
                  }));
              Severity: Major
              Found in superset-frontend/src/views/CRUD/utils.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return null;

                  Avoid too many return statements within this function.
                  Open

                                        return obj;
                  Severity: Major
                  Found in superset-frontend/src/views/CRUD/hooks.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return <Alert type="warning" message={t('The query returned no data')} />;
                    Severity: Major
                    Found in superset-frontend/src/SqlLab/components/ResultSet/index.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return (
                              <Button
                                buttonSize="small"
                                buttonStyle="primary"
                                onClick={() =>
                      Severity: Major
                      Found in superset-frontend/src/SqlLab/components/ResultSet/index.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return null;
                        Severity: Major
                        Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return numberFormatter(value);
                          Severity: Major
                          Found in superset-frontend/src/filters/utils.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return [];

                              Avoid too many return statements within this function.
                              Open

                                    return timeFormatter(value);
                              Severity: Major
                              Found in superset-frontend/src/filters/utils.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                        return {
                                                          ...obj,
                                                          error_type,
                                                          ...Object.assign(
                                                            {},
                                Severity: Major
                                Found in superset-frontend/src/views/CRUD/hooks.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return chartsByTags[activeSelector];

                                    Avoid too many return statements within this function.
                                    Open

                                      return [];
                                    Severity: Major
                                    Found in superset-frontend/src/views/CRUD/utils.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return value;
                                      Severity: Major
                                      Found in superset-frontend/src/filters/utils.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return String(value);
                                        Severity: Major
                                        Found in superset-frontend/src/filters/utils.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language