Showing 99 of 594 total issues

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

        <Row>
          <Column large={6}>{this.renderInput('first_name', 'First Name')}</Column>
          <Column large={6}>{this.renderInput('last_name', 'Last Name')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

        <Row>
          <Column large={6}>{this.renderInput('twitter', 'Twitter Username')}</Column>
          <Column large={6}>{this.renderInput('facebook', 'Facebook Username')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

        <Row>
          <Column large={6}>{this.renderInput('al_id', 'AngelList ID')}</Column>
          <Column large={6}>{this.renderInput('crunchbase_id', 'Crunchbase ID')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

        <Row>
          <Column large={6}>{this.renderInput('domain', 'Firm Domain')}</Column>
          <Column large={6}>{this.renderInput('photo', 'Photo (URL)')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

        <Row>
          <Column large={6}>{this.renderInput('linkedin', 'LinkedIn Profile')}</Column>
          <Column large={6}>{this.renderInput('email', 'Email')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

        <Row>
          <Column large={6}>{this.renderInput('al_username', 'AngelList ID')}</Column>
          <Column large={6}>{this.renderInput('crunchbase_id', 'Crunchbase ID')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..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 74.

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

        <Row>
          <Column large={6}>{this.renderInput('linkedin', 'LinkedIn Profile')}</Column>
          <Column large={6}>{this.renderInput('email', 'Email')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 92..95
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

        <Row>
          <Column large={6}>{this.renderInput('twitter', 'Your Twitter Username')}</Column>
          <Column large={6}>{this.renderInput('linkedin', 'Your LinkedIn Username')}</Column>
        </Row>
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 72..75
app/javascript/components/external/vcwiz/global/settings/add_investor.jsx on lines 76..79
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 59..62
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 63..66
app/javascript/components/external/vcwiz/global/settings/competitor_profile.jsx on lines 67..70
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 96..99
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 64..67
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 68..71
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 80..83
app/javascript/components/external/vcwiz/global/settings/investor_settings.jsx on lines 84..87

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

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

  renderCompany({ id, name }) {
    return <a href={CompanyPath.resource(id, inflection.dasherize(name.toLowerCase()))}>{name}</a>;
  }
app/javascript/components/external/vcwiz/global/competitors/competitor_base.jsx on lines 143..145

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

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

  renderCompetitor({ id, name }) {
    return <a href={FirmPath.resource(id, inflection.dasherize(name.toLowerCase()))}>{name}</a>;
  }
app/javascript/components/external/vcwiz/global/competitors/competitor_base.jsx on lines 139..141

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

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

    imageExists(url).then(() => {
      if (this.mounted && this.url() === url) {
        this.setState({valid: true});
        this.props.onLoad();
      }
app/javascript/components/external/vcwiz/discover/company_image.jsx on lines 47..57

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

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

  render() {
    return (
      <VCWiz
        page="competitor"
        body={this.renderBody()}
app/javascript/components/external/vcwiz/investor_page/investor_page.jsx on lines 27..37

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

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

  render() {
    return (
      <VCWiz
        page="investor"
        body={this.renderBody()}
app/javascript/components/external/vcwiz/competitor_page/competitor_page.jsx on lines 19..29

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

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

    ffetch(TargetInvestorsPath.id(id), 'PATCH', {target_investor: {stage: update.track.value}}).then(() => {
      Actions.trigger('refreshFounder');
    });
app/javascript/components/external/vcwiz/global/competitors/competitor_base.jsx on lines 100..102

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

      ffetch(InvestorsPath.id(id), 'PATCH', {investor: {stage: update.track.value}}).then(() => {
        Actions.trigger('refreshFounder');
      });
app/javascript/components/external/vcwiz/outreach/partner_modal.jsx on lines 14..16

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

      <div key={`image-${i}`}><ProfileImage fallback={initials(person)} src={photo} size={50} /></div>,
app/javascript/components/external/vcwiz/global/competitors/intro_path_count.jsx on lines 37..37

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

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

      (short || (direct && count === 1)) ? null : <div key={`image-${i}`}><ProfileImage fallback={initials(person)} src={photo} size={25} /></div>,
app/javascript/components/external/vcwiz/global/competitors/intro_path.jsx on lines 26..26

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

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

  render() {
    return (
      <OverlayModal
        name="settings"
        top={this.renderTop()}
app/javascript/components/external/vcwiz/discover/more_filters_modal.jsx on lines 37..46
app/javascript/components/external/vcwiz/discover/welcome_modal.jsx on lines 104..113
app/javascript/components/external/vcwiz/global/login/login_modal.jsx on lines 324..333
app/javascript/components/external/vcwiz/outreach/email_integration_modal.jsx on lines 74..83
app/javascript/components/external/vcwiz/outreach/import_investors_modal.jsx on lines 313..322
app/javascript/components/external/vcwiz/outreach/intro_modal.jsx on lines 214..223

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

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

  renderIconLine(icon, line, link = null, text = null) {
    return <IconLine icon={icon} line={line} link={link} text={text}/>;
  }
app/javascript/components/external/vcwiz/discover/company_card.jsx on lines 9..11
app/javascript/components/external/vcwiz/global/competitors/competitor_base.jsx on lines 204..206

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

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

  render() {
    return (
      <OverlayModal
        name="email_integration"
        top={this.renderTop()}
app/javascript/components/external/vcwiz/discover/more_filters_modal.jsx on lines 37..46
app/javascript/components/external/vcwiz/discover/welcome_modal.jsx on lines 104..113
app/javascript/components/external/vcwiz/global/login/login_modal.jsx on lines 324..333
app/javascript/components/external/vcwiz/global/settings/founder_settings_modal.jsx on lines 107..116
app/javascript/components/external/vcwiz/outreach/import_investors_modal.jsx on lines 313..322
app/javascript/components/external/vcwiz/outreach/intro_modal.jsx on lines 214..223

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

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