airbnb/caravel

View on GitHub

Showing 2,400 of 6,072 total issues

File NVD3Vis.js has 1021 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* eslint-disable react/sort-prop-types */
/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
Severity: Major
Found in superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js - About 2 days to fix

    Function ControlPanelsContainer has 508 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const ControlPanelsContainer = (props: ControlPanelsContainerProps) => {
      const { colors } = useTheme();
      const pluginContext = useContext(PluginContext);
    
      const prevState = usePrevious(props.exploreState);
    Severity: Major
    Found in superset-frontend/src/explore/components/ControlPanelsContainer.tsx - About 2 days to fix

      File api.py has 1008 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # Licensed to the Apache Software Foundation (ASF) under one
      # or more contributor license agreements.  See the NOTICE file
      # distributed with this work for additional information
      # regarding copyright ownership.  The ASF licenses this file
      # to you under the Apache License, Version 2.0 (the
      Severity: Major
      Found in superset/datasets/api.py - About 2 days to fix

        File index.tsx has 972 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * Licensed to the Apache Software Foundation (ASF) under one
         * or more contributor license agreements.  See the NOTICE file
         * distributed with this work for additional information
         * regarding copyright ownership.  The ASF licenses this file
        Severity: Major
        Found in superset-frontend/src/features/databases/UploadDataModel/index.tsx - About 2 days to fix

          File TableChart.tsx has 968 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * Licensed to the Apache Software Foundation (ASF) under one
           * or more contributor license agreements.  See the NOTICE file
           * distributed with this work for additional information
           * regarding copyright ownership.  The ASF licenses this file
          Severity: Major
          Found in superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx - About 2 days to fix

            File core.py has 957 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Licensed to the Apache Software Foundation (ASF) under one
            # or more contributor license agreements.  See the NOTICE file
            # distributed with this work for additional information
            # regarding copyright ownership.  The ASF licenses this file
            # to you under the Apache License, Version 2.0 (the
            Severity: Major
            Found in superset/models/core.py - About 2 days to fix

              File Select.test.tsx has 955 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * Licensed to the Apache Software Foundation (ASF) under one
               * or more contributor license agreements.  See the NOTICE file
               * distributed with this work for additional information
               * regarding copyright ownership.  The ASF licenses this file
              Severity: Major
              Found in superset-frontend/src/components/Select/Select.test.tsx - About 2 days to fix

                File sqlLab.test.js has 931 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * Licensed to the Apache Software Foundation (ASF) under one
                 * or more contributor license agreements.  See the NOTICE file
                 * distributed with this work for additional information
                 * regarding copyright ownership.  The ASF licenses this file
                Severity: Major
                Found in superset-frontend/src/SqlLab/actions/sqlLab.test.js - About 2 days to fix

                  File data.ts has 930 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*
                   * Licensed to the Apache Software Foundation (ASF) under one
                   * or more contributor license agreements.  See the NOTICE file
                   * distributed with this work for additional information
                   * regarding copyright ownership.  The ASF licenses this file

                    File AnnotationLayer.jsx has 911 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /**
                     * Licensed to the Apache Software Foundation (ASF) under one
                     * or more contributor license agreements.  See the NOTICE file
                     * distributed with this work for additional information
                     * regarding copyright ownership.  The ASF licenses this file

                      File data.ts has 907 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*
                       * Licensed to the Apache Software Foundation (ASF) under one
                       * or more contributor license agreements.  See the NOTICE file
                       * distributed with this work for additional information
                       * regarding copyright ownership.  The ASF licenses this file

                        File data.ts has 907 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*
                         * Licensed to the Apache Software Foundation (ASF) under one
                         * or more contributor license agreements.  See the NOTICE file
                         * distributed with this work for additional information
                         * regarding copyright ownership.  The ASF licenses this file

                          File data.ts has 907 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*
                           * Licensed to the Apache Software Foundation (ASF) under one
                           * or more contributor license agreements.  See the NOTICE file
                           * distributed with this work for additional information
                           * regarding copyright ownership.  The ASF licenses this file

                            File index.tsx has 897 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * Licensed to the Apache Software Foundation (ASF) under one
                             * or more contributor license agreements.  See the NOTICE file
                             * distributed with this work for additional information
                             * regarding copyright ownership.  The ASF licenses this file
                            Severity: Major
                            Found in superset-frontend/src/SqlLab/components/SqlEditor/index.tsx - About 2 days to fix

                              File AsyncSelect.test.tsx has 874 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /**
                               * Licensed to the Apache Software Foundation (ASF) under one
                               * or more contributor license agreements.  See the NOTICE file
                               * distributed with this work for additional information
                               * regarding copyright ownership.  The ASF licenses this file
                              Severity: Major
                              Found in superset-frontend/src/components/Select/AsyncSelect.test.tsx - About 2 days to fix

                                Function ExploreViewContainer has 424 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function ExploreViewContainer(props) {
                                  const dynamicPluginContext = usePluginContext();
                                  const dynamicPlugin = dynamicPluginContext.dynamicPlugins[props.vizType];
                                  const isDynamicPluginLoading = dynamicPlugin && dynamicPlugin.mounting;
                                  const wasDynamicPluginLoading = usePrevious(isDynamicPluginLoading);

                                  Function PivotTableChart has 408 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export default function PivotTableChart(props: PivotTableProps) {
                                    const {
                                      data,
                                      height,
                                      width,

                                    File TableRenderers.jsx has 829 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /**
                                     * Licensed to the Apache Software Foundation (ASF) under one
                                     * or more contributor license agreements.  See the NOTICE file
                                     * distributed with this work for additional information
                                     * regarding copyright ownership.  The ASF licenses this file

                                      Function SliceHeaderControls has 395 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      const SliceHeaderControls = (props: SliceHeaderControlsPropsWithRouter) => {
                                        const [dropdownIsOpen, setDropdownIsOpen] = useState(false);
                                        const [tableModalIsOpen, setTableModalIsOpen] = useState(false);
                                        const [drillModalIsOpen, setDrillModalIsOpen] = useState(false);
                                        const [selectedKeys, setSelectedKeys] = useState<string[]>([]);

                                        File index.tsx has 825 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /**
                                         * Licensed to the Apache Software Foundation (ASF) under one
                                         * or more contributor license agreements.  See the NOTICE file
                                         * distributed with this work for additional information
                                         * regarding copyright ownership.  The ASF licenses this file
                                        Severity: Major
                                        Found in superset-frontend/src/pages/ChartList/index.tsx - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language