spmcbride1201/keypunch-electron

View on GitHub

Showing 75 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

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          const lightTree = {
            tree: {
              base: {
                listStyle: 'none',
                backgroundColor: '#F3F3F3',
          Severity: Major
          Found in app/components/Explorer.js and 1 other location - About 1 day to fix
          app/components/Explorer.js on lines 90..166

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 319.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          const darkTree = {
            tree: {
              base: {
                listStyle: 'none',
                backgroundColor: '#21252B',
          Severity: Major
          Found in app/components/Explorer.js and 1 other location - About 1 day to fix
          app/components/Explorer.js on lines 12..88

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 319.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          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

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                }, {
                  label: 'View',
                  submenu: (process.env.NODE_ENV === 'development') ? [{
                    label: 'Reload',
                    accelerator: 'Command+R',
            Severity: Major
            Found in app/main.development.js and 1 other location - About 7 hrs to fix
            app/main.development.js on lines 225..252

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 176.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                }, {
                  label: '&View',
                  submenu: (process.env.NODE_ENV === 'development') ? [{
                    label: '&Reload',
                    accelerator: 'Ctrl+R',
            Severity: Major
            Found in app/main.development.js and 1 other location - About 7 hrs to fix
            app/main.development.js on lines 142..169

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 176.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            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

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            retrieveJob: (jobID) => {
                              dialog.showMessageBox({
                                type: 'question',
                                buttons: ['Cancel', 'Download'],
                                defaultId: 0,
                        Severity: Major
                        Found in app/components/Results.js and 1 other location - About 4 hrs to fix
                        app/components/Results.js on lines 101..117

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 119.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            deleteJob: (jobID) => {
                              dialog.showMessageBox({
                                type: 'question',
                                buttons: ['Cancel', 'Delete'],
                                defaultId: 0,
                        Severity: Major
                        Found in app/components/Results.js and 1 other location - About 4 hrs to fix
                        app/components/Results.js on lines 118..134

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 119.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                            }, {
                              label: 'Help',
                              submenu: [{
                                label: 'Learn More',
                                click() {
                        Severity: Major
                        Found in app/main.development.js and 1 other location - About 4 hrs to fix
                        app/main.development.js on lines 185..208

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 117.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                            }, {
                              label: 'Help',
                              submenu: [{
                                label: 'Learn More',
                                click() {
                        Severity: Major
                        Found in app/main.development.js and 1 other location - About 4 hrs to fix
                        app/main.development.js on lines 252..275

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 117.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        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
                          Severity
                          Category
                          Status
                          Source
                          Language