InsidersByte/honeymoon-gift-list

View on GitHub

Showing 36 of 276 total issues

File material-ui_vx.x.x.js has 6879 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// flow-typed signature: 76737ce0f0ec2adfbc69d513ae4a5d5c
// flow-typed version: <<STUB>>/material-ui_v0.17.1/flow_v0.43.0

/**
 * This is an autogenerated libdef stub for:
Severity: Major
Found in flow-typed/npm/material-ui_vx.x.x.js - About 2 wks to fix

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

    // flow-typed signature: a7f93d9b2654c3e0bf5b31cd01fec5c1
    // flow-typed version: <<STUB>>/eslint_v3.19.0/flow_v0.43.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 stylelint_vx.x.x.js has 1731 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // flow-typed signature: e2a79c1517c3a15be5fd83004d4f2383
      // flow-typed version: <<STUB>>/stylelint_v7.10.1/flow_v0.43.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Major
      Found in flow-typed/npm/stylelint_vx.x.x.js - About 4 days to fix

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

        // flow-typed signature: d401fec7db2e16b8794dfe6050e44423
        // flow-typed version: <<STUB>>/webpack_v2.3.3/flow_v0.43.0
        
        /**
         * This is an autogenerated libdef stub for:
        Severity: Major
        Found in flow-typed/npm/webpack_vx.x.x.js - About 4 days to fix

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

          // flow-typed signature: cd0b28d4926e0bb4e8a50056dc184275
          // flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v4.0.0/flow_v0.43.0
          
          /**
           * This is an autogenerated libdef stub for:
          Severity: Major
          Found in flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js - About 3 days to fix

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

            // flow-typed signature: b3ccc1180f6cfdc508dd3a8813112d3b
            // flow-typed version: <<STUB>>/pug_v2.0.0-beta11/flow_v0.43.0
            
            /**
             * This is an autogenerated libdef stub for:
            Severity: Major
            Found in flow-typed/npm/pug_vx.x.x.js - About 2 days to fix

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

              // flow-typed signature: 8b543eeada346e091bdf82c80308eb09
              // flow-typed version: <<STUB>>/stylus_v0.54.5/flow_v0.43.0
              
              /**
               * This is an autogenerated libdef stub for:
              Severity: Major
              Found in flow-typed/npm/stylus_vx.x.x.js - About 1 day to fix

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

                // flow-typed signature: 72830a835b9932d7c49d8653e0c7730c
                // flow-typed version: <<STUB>>/react-router_v3.0.2/flow_v0.43.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 eslint-plugin-react_vx.x.x.js has 411 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // flow-typed signature: 6e25832b7265b2e13595a127c814e8a0
                  // flow-typed version: <<STUB>>/eslint-plugin-react_v6.10.3/flow_v0.43.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

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

                    // flow-typed signature: 0c457f595458ff861128bd5a2f07a787
                    // flow-typed version: <<STUB>>/validator_v7.0.0/flow_v0.43.0
                    
                    /**
                     * This is an autogenerated libdef stub for:
                    Severity: Minor
                    Found in flow-typed/npm/validator_vx.x.x.js - About 5 hrs to fix

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

                      // flow-typed signature: ebbf61f885cf587341c18edb449beb37
                      // flow-typed version: <<STUB>>/stylint_v1.5.9/flow_v0.43.0
                      
                      /**
                       * This is an autogenerated libdef stub for:
                      Severity: Minor
                      Found in flow-typed/npm/stylint_vx.x.x.js - About 5 hrs to fix

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

                        // flow-typed signature: 55da9e9ad7804192c1b8561171f3e109
                        // flow-typed version: <<STUB>>/autoprefixer_v6.7.7/flow_v0.43.0
                        
                        /**
                         * This is an autogenerated libdef stub for:
                        Severity: Minor
                        Found in flow-typed/npm/autoprefixer_vx.x.x.js - About 4 hrs to fix

                          Function exports has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
                          Open

                          module.exports = ({ express }) => {
                            const router = new express.Router();
                          
                            router
                              .route('/')
                          Severity: Minor
                          Found in server/routes/api/user.js - About 3 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

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

                          // flow-typed signature: bb4b7d31ef8ad65d8c56bbc73f322f8d
                          // flow-typed version: <<STUB>>/bookshelf_v0.10.3/flow_v0.43.0
                          
                          /**
                           * This is an autogenerated libdef stub for:
                          Severity: Minor
                          Found in flow-typed/npm/bookshelf_vx.x.x.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: 7fa8af3125cef420ead7732f67b90fb7
                            // flow-typed version: <<STUB>>/eslint-plugin-import_v2.2.0/flow_v0.43.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 eslint-plugin-flowtype_vx.x.x.js has 255 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              // flow-typed signature: 3f1aef8a401d2c2178f1b057594cb9ea
                              // flow-typed version: <<STUB>>/eslint-plugin-flowtype_v2.30.4/flow_v0.43.0
                              
                              /**
                               * This is an autogenerated libdef stub for:
                              Severity: Minor
                              Found in flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js - About 2 hrs to fix

                                Function createUser has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      wrap(function* createUser(req, res) {
                                        req.checkBody('email').isEmail();
                                
                                        const errors = req.validationErrors();
                                
                                
                                Severity: Minor
                                Found in server/routes/api/user.js - About 2 hrs to fix

                                  Function exports has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  module.exports = ({ express, config }) => {
                                    const router = new express.Router();
                                  
                                    router.post(
                                      '/',
                                  Severity: Minor
                                  Found in server/routes/api/authenticate.js - About 1 hr 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 exports has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  module.exports = ({ express, config, secure }) => {
                                    const router = new express.Router();
                                  
                                    router
                                      .route('/')
                                  Severity: Minor
                                  Found in server/routes/api/giftSet.js - About 1 hr 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 reducer has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  const reducer = (state: BasketType = new Map(), action: ActionType): BasketType => {
                                    switch (action.type) {
                                      case ADD_TO_BASKET: {
                                        const { payload: item } = action;
                                        const { id } = item;
                                  Severity: Minor
                                  Found in public/redux/basket.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language