InsidersByte/honeymoon-gift-list

View on GitHub

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

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

                  router
                    .route('/')
                    .get(
                      wrap(function* getWeddingPartyMembers(req, res) {
                        const weddingPartyMembers = yield WeddingPartyMember.forge({ weddingProfileId: WEDDING_PROFILE_ID }).fetchAll();
                Severity: Major
                Found in server/routes/api/weddingPartyMember.js and 1 other location - About 1 day to fix
                server/routes/api/gift.js on lines 9..53

                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 316.

                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

                  router
                    .route('/')
                    .get(
                      wrap(function* getGifts(req, res) {
                        const gifts = yield Gift.forge({ weddingProfileId: WEDDING_PROFILE_ID }).fetchAll({ withRelated: ['giftSets'] });
                Severity: Major
                Found in server/routes/api/gift.js and 1 other location - About 1 day to fix
                server/routes/api/weddingPartyMember.js on lines 9..53

                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 316.

                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

                export default function WeddingPartyMembersList({ weddingPartyMembers, loading, onAdd, onSelect, onMove, onDrop, onDelete }: PropsType) {
                  return (
                    <Paper>
                      <Toolbar>
                        <ToolbarGroup>
                Severity: Major
                Found in public/components/WeddingPartyMemberList.jsx and 1 other location - About 1 day to fix
                public/components/GiftList.jsx on lines 28..56

                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 283.

                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

                export default function GiftList({ gifts, loading, onAdd, onSelect, onMove, onDrop, onDelete }: PropsType) {
                  return (
                    <Paper>
                      <Toolbar>
                        <ToolbarGroup>
                Severity: Major
                Found in public/components/GiftList.jsx and 1 other location - About 1 day to fix
                public/components/WeddingPartyMemberList.jsx on lines 27..55

                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 283.

                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

                export default function weddingPartyMembersReducer(state = initialWeddingPartyMembers, action) {
                  switch (action.type) {
                    case TYPES.LOAD_WEDDING_PARTY_MEMBERS_REQUEST:
                      return Object.assign({}, state, { loading: true });
                
                
                Severity: Major
                Found in public/reducers/weddingPartyMembers.js and 1 other location - About 1 day to fix
                public/reducers/sections.js on lines 13..39

                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 239.

                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

                export default function sectionsReducer(state = initialSections, action) {
                  switch (action.type) {
                    case TYPES.LOAD_SECTIONS_REQUEST:
                      return Object.assign({}, state, { loading: true });
                
                
                Severity: Major
                Found in public/reducers/sections.js and 1 other location - About 1 day to fix
                public/reducers/weddingPartyMembers.js on lines 15..41

                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 239.

                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

                    it('should handle ERROR_NOTIFICATION', () => {
                      let expectedState = [{ id: 1, message: 'world', level: 'error', position: 'bl', show: true }];
                
                      expect(reducer(undefined, { type: 'our-wedding-heroes/notifications/ERROR_NOTIFICATION', payload: { message: 'world' } })).toEqual(expectedState);
                
                
                Severity: Major
                Found in public/redux/notifications.test.js and 1 other location - About 1 day to fix
                public/redux/notifications.test.js on lines 57..69

                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 219.

                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

                    it('should handle SUCCESS_NOTIFICATION', () => {
                      let expectedState = [{ id: 1, message: 'hello', level: 'success', position: 'bl', show: true }];
                
                      expect(reducer(undefined, { type: 'our-wedding-heroes/notifications/SUCCESS_NOTIFICATION', payload: { message: 'hello' } })).toEqual(expectedState);
                
                
                Severity: Major
                Found in public/redux/notifications.test.js and 1 other location - About 1 day to fix
                public/redux/notifications.test.js on lines 71..83

                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 219.

                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

                    it('should render a fieldset', () => {
                      const props = {
                        loading: false,
                        saving: false,
                        onSubmit: jest.fn(),
                Severity: Major
                Found in public/components/Form/index.test.jsx and 1 other location - About 7 hrs to fix
                public/components/Form/index.test.jsx on lines 89..103

                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 175.

                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

                    it('should set the fieldset to disabled when saving', () => {
                      const props = {
                        loading: false,
                        saving: true,
                        onSubmit: jest.fn(),
                Severity: Major
                Found in public/components/Form/index.test.jsx and 1 other location - About 7 hrs to fix
                public/components/Form/index.test.jsx on lines 58..72

                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 175.

                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

                  onSubmit = (event: SyntheticEvent) => {
                    event.preventDefault();
                
                    const { params: { token }, actions: { signUp, error } } = this.props;
                    const { user } = this.state;
                Severity: Major
                Found in public/containers/SignUpPage.jsx and 1 other location - About 6 hrs to fix
                public/containers/ResetPasswordPage.jsx on lines 38..52

                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 174.

                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

                  submit = (event: SyntheticEvent) => {
                    event.preventDefault();
                
                    const { params: { token }, actions: { resetPassword, error } } = this.props;
                    const { user } = this.state;
                Severity: Major
                Found in public/containers/ResetPasswordPage.jsx and 1 other location - About 6 hrs to fix
                public/containers/SignUpPage.jsx on lines 54..68

                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 174.

                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

                exports.up = knex =>
                  knex.schema.createTable('wedding_party_members', table => {
                    table.increments();
                    table.timestamps();
                    table.string('name').notNullable();
                Severity: Major
                Found in migrations/20160930122356_wedding_party_members.js and 1 other location - About 6 hrs to fix
                migrations/20160930122947_gifts.js on lines 1..11

                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 170.

                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

                Severity
                Category
                Status
                Source
                Language