spmcbride1201/keypunch-electron

View on GitHub

Showing 30 of 75 total issues

File jsdom_vx.x.x.js has 1857 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// flow-typed signature: 93a0f8b93e28b4e1cd4ffa98fe28029a
// flow-typed version: <<STUB>>/jsdom_v^9.9.1/flow_v0.38.0

/**
 * This is an autogenerated libdef stub for:
Severity: Major
Found in flow-typed/npm/jsdom_vx.x.x.js - About 5 days to fix

    File eslint_vx.x.x.js has 1845 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // flow-typed signature: 470f4f8e06492465d32c88bab53d4c5b
    // flow-typed version: <<STUB>>/eslint_v^3.14.0/flow_v0.38.0
    
    /**
     * This is an autogenerated libdef stub for:
    Severity: Major
    Found in flow-typed/npm/eslint_vx.x.x.js - About 5 days to fix

      File webpack_vx.x.x.js has 1287 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // flow-typed signature: dcb18d63c2ce2a4a303854e0424ff485
      // flow-typed version: <<STUB>>/webpack_v^1.14.0/flow_v0.38.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Major
      Found in flow-typed/npm/webpack_vx.x.x.js - About 3 days to fix

        File eslint-plugin-jsx-a11y_vx.x.x.js has 993 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // flow-typed signature: 375a6266fd32da8b90ac29a1bf47c6ca
        // flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^3.0.2/flow_v0.38.0
        
        /**
         * This is an autogenerated libdef stub for:
        Severity: Major
        Found in flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js - About 2 days to fix

          Function generateMenuTemplate has 201 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export default function generateMenuTemplate() {
            const template = [
              {
                label: 'File',
                submenu: [
          Severity: Major
          Found in app/utils/menu.js - About 1 day to fix

            Function StatusBar has 160 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function StatusBar(props) {
              return (
                <View
                  style={{
                    bottom: '0',
            Severity: Major
            Found in app/components/StatusBar.js - About 6 hrs to fix

              File react-router_vx.x.x.js has 423 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // flow-typed signature: 25ef9c02e61e9be98a9372106daf10ea
              // flow-typed version: <<STUB>>/react-router_v^3.0.2/flow_v0.38.0
              
              /**
               * This is an autogenerated libdef stub for:
              Severity: Minor
              Found in flow-typed/npm/react-router_vx.x.x.js - About 6 hrs to fix

                File jesFtp.js has 419 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                import Promise from 'bluebird';
                import { store } from '../index';
                import {
                  setCurrentStep,
                  setIsConnected,
                Severity: Minor
                Found in app/utils/jesFtp.js - About 6 hrs to fix

                  File eslint-plugin-react_vx.x.x.js has 393 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // flow-typed signature: 39d1796ef278e389cee6176d862601a2
                  // flow-typed version: <<STUB>>/eslint-plugin-react_v^6.9.0/flow_v0.38.0
                  
                  /**
                   * This is an autogenerated libdef stub for:
                  Severity: Minor
                  Found in flow-typed/npm/eslint-plugin-react_vx.x.x.js - About 5 hrs to fix

                    Function renderIcon has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function renderIcon(name, theme) {
                      const fill = theme === 'light' ? '#ffffff' : '#000000';
                      const stroke = theme === 'light' ? '#000000' : '#ffffff';
                      const grayscale = theme === 'dark' ? '#ffffff' : '#ddd';
                      switch (name) {
                    Severity: Major
                    Found in app/utils/renderIcon.js - About 4 hrs to fix

                      File tcomb_vx.x.x.js has 357 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // flow-typed signature: ab3c545d74b615b66b8411018473f87d
                      // flow-typed version: <<STUB>>/tcomb_v^3.2.16/flow_v0.38.0
                      
                      /**
                       * This is an autogenerated libdef stub for:
                      Severity: Minor
                      Found in flow-typed/npm/tcomb_vx.x.x.js - About 4 hrs to fix

                        Function ConfigForm has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function ConfigForm(props) {
                          const hostName = props.hostName;
                          const ftpPort = props.ftpPort;
                          const ftpUserName = props.ftpUserName;
                          const ftpPassword = props.ftpPassword;
                        Severity: Major
                        Found in app/components/ConfigForm.js - About 4 hrs to fix

                          File electron-builder_vx.x.x.js has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          // flow-typed signature: 8e48cf5994f0196faf010ea12f3e3c6a
                          // flow-typed version: <<STUB>>/electron-builder_v^11.4.4/flow_v0.38.0
                          
                          /**
                           * This is an autogenerated libdef stub for:
                          Severity: Minor
                          Found in flow-typed/npm/electron-builder_vx.x.x.js - About 2 hrs to fix

                            Function _pollMostRecentJobUntilComplete has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                            Open

                              async _pollMostRecentJobUntilComplete(maxRetries, timeToWait) {
                                console.log("Attempting to get most recent job");
                                let mostRecentJob;
                                while (!mostRecentJob || mostRecentJob.status !== 'OUTPUT' && maxRetries > 0) {
                                  console.log("TriesRemaining: ", maxRetries);
                            Severity: Minor
                            Found in app/utils/jesFtp.js - About 2 hrs to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function listDatasets has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              listDatasets() {
                                store.dispatch(setIsSubmitting(true));
                                store.dispatch(setIsRetrieving(true));
                                let datasets = [];
                                return this.connect()
                            Severity: Major
                            Found in app/utils/jesFtp.js - About 2 hrs to fix

                              Function Results has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function Results(props) { // props is now from MY POV
                                const jobIDs = Object.keys(props.jobs);
                                return (
                              
                                  <View
                              Severity: Major
                              Found in app/components/Results.js - About 2 hrs to fix

                                Function App has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function App(props) {
                                  const editorContent = props.editorContent;
                                  const setEditorContent = props.setEditorContent;
                                
                                  return (
                                Severity: Major
                                Found in app/components/App.js - About 2 hrs to fix

                                  Function listMembers has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    listMembers(dsname, datasets) {
                                      store.dispatch(setIsSubmitting(true));
                                      store.dispatch(setIsRetrieving(true));
                                      console.log("Connection: ", this.ftp.getConnectionStatus());
                                      let pwd;
                                  Severity: Major
                                  Found in app/utils/jesFtp.js - About 2 hrs to fix

                                    File eslint-plugin-import_vx.x.x.js has 261 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    // flow-typed signature: 84c5e55bff091cbd9594af11fc665d9e
                                    // flow-typed version: <<STUB>>/eslint-plugin-import_v^2.2.0/flow_v0.38.0
                                    
                                    /**
                                     * This is an autogenerated libdef stub for:
                                    Severity: Minor
                                    Found in flow-typed/npm/eslint-plugin-import_vx.x.x.js - About 2 hrs to fix

                                      File main.development.js has 258 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      import { app, BrowserWindow, Menu, shell } from 'electron';
                                      
                                      let menu;
                                      let template;
                                      let mainWindow = null;
                                      Severity: Minor
                                      Found in app/main.development.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language