InsidersByte/honeymoon-gift-list

View on GitHub

Showing 276 of 276 total issues

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

export default function SectionForm(
  {
    section,
    loading,
    saving,
Severity: Major
Found in public/components/SectionForm.jsx and 1 other location - About 1 hr to fix
public/components/WeddingProfileForm.jsx on lines 53..185

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

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 updateWeddingProfile has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      wrap(function* updateWeddingProfile(req, res) {
        req.checkBody('coverTitle').notEmpty();
        req.checkBody('coverImageUrl').isURL();
        req.checkBody('weddingDate').isDate();
        req.checkBody('giftListContent').notEmpty();
Severity: Minor
Found in server/routes/api/weddingProfile.js - About 1 hr to fix

    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

      Function giftsReducer has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export default function giftsReducer(state = initialGifts, action) {
        switch (action.type) {
          case TYPES.OPEN_GIFT_MODAL:
            return Object.assign({}, state, { giftModalOpen: true });
      
      
      Severity: Minor
      Found in public/reducers/gifts.js - About 1 hr to fix

        Function giftSetReducer has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export default function giftSetReducer(state = giftSet, action) {
          switch (action.type) {
            case TYPES.LOAD_GIFT_SET_REQUEST:
              return Object.assign({}, state, { loading: true });
        
        
        Severity: Minor
        Found in public/reducers/giftSet.js - About 1 hr to fix

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

            weddingProfile: {
              id: number,
              coverTitle: string,
              coverImageUrl: string,
              weddingDate: Date,
          Severity: Major
          Found in public/components/Landing.jsx and 1 other location - About 1 hr to fix
          public/containers/LandingPage.jsx on lines 16..27

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

          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

            weddingProfile: {
              id: number,
              coverTitle: string,
              coverImageUrl: string,
              weddingDate: Date,
          Severity: Major
          Found in public/containers/LandingPage.jsx and 1 other location - About 1 hr to fix
          public/components/Landing.jsx on lines 19..30

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="password"
                    type="password"
                    floatingLabelText="Password"
                    value={password}
          Severity: Major
          Found in public/components/SetupForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="confirmPassword"
                    type="password"
                    floatingLabelText="Confirm Password"
                    value={confirmPassword}
          Severity: Major
          Found in public/components/ProfileForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="confirmPassword"
                    type="password"
                    floatingLabelText="Confirm Password"
                    value={confirmPassword}
          Severity: Major
          Found in public/components/SetupForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                      <TextField
                        name="email"
                        type="email"
                        floatingLabelText="Email"
                        value={email}
          Severity: Major
          Found in public/components/GiverDetailsForm.jsx and 13 other locations - About 1 hr to fix
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="currentPassword"
                    type="password"
                    floatingLabelText="Current Password"
                    value={currentPassword}
          Severity: Major
          Found in public/components/ProfileForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="confirmPassword"
                    type="password"
                    floatingLabelText="Confirm Password"
                    value={confirmPassword}
          Severity: Major
          Found in public/components/SignUpForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="confirmPassword"
                    type="password"
                    floatingLabelText="Confirm Password"
                    value={confirmPassword}
          Severity: Major
          Found in public/components/ResetPasswordForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="email"
                    type="email"
                    floatingLabelText="Email"
                    value={email}
          Severity: Major
          Found in public/components/SetupForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 3 locations. Consider refactoring.
          Open

            it('should render <BasketSummaryListItem /> components', () => {
              const wrapper = shallow(<BasketSummary {...props} />);
          
              expect(wrapper.find('BasketSummaryListItem').length).toBe(2);
            });
          Severity: Major
          Found in public/components/BasketSummary/index.test.jsx and 2 other locations - About 1 hr to fix
          public/containers/UsersPage/index.test.jsx on lines 62..66
          public/containers/UsersPage/index.test.jsx on lines 81..85

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

          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 exports has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

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

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

            it('should render a <UserDialog /> component', () => {
              const wrapper = shallow(<UsersPage {...props} />);
          
              expect(wrapper.find('UserDialog').length).toBe(1);
            });
          Severity: Major
          Found in public/containers/UsersPage/index.test.jsx and 2 other locations - About 1 hr to fix
          public/components/BasketSummary/index.test.jsx on lines 50..54
          public/containers/UsersPage/index.test.jsx on lines 62..66

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="email"
                    type="email"
                    floatingLabelText="Email"
                    value={email}
          Severity: Major
          Found in public/components/LoginForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 55..65
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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 14 locations. Consider refactoring.
          Open

                  <TextField
                    name="password"
                    type="password"
                    floatingLabelText="Password"
                    value={password}
          Severity: Major
          Found in public/components/LoginForm.jsx and 13 other locations - About 1 hr to fix
          public/components/GiverDetailsForm.jsx on lines 85..95
          public/components/LoginForm.jsx on lines 43..53
          public/components/ProfileForm.jsx on lines 42..52
          public/components/ProfileForm.jsx on lines 54..64
          public/components/ProfileForm.jsx on lines 66..76
          public/components/ResetPasswordForm.jsx on lines 42..52
          public/components/ResetPasswordForm.jsx on lines 54..64
          public/components/SetupForm.jsx on lines 48..58
          public/components/SetupForm.jsx on lines 60..70
          public/components/SetupForm.jsx on lines 72..82
          public/components/SignUpForm.jsx on lines 53..63
          public/components/SignUpForm.jsx on lines 65..75
          public/components/WeddingProfileForm.jsx on lines 129..139

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

          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