bullhorn/career-portal

View on GitHub

Showing 63 of 83 total issues

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

      case 'address(state)':
        this.options = res.data.map((result: IAddressListResponse) => {
          return {
            value: result.address.state,
            label: `${result.address.state} (${result.idCount})`,
Severity: Major
Found in src/app/sidebar/sidebar-filter/sidebar-filter.component.ts and 1 other location - About 1 day to fix
src/app/sidebar/sidebar-filter/sidebar-filter.component.ts on lines 56..75

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

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

      case 'address(city)':
        this.options = res.data.map((result: IAddressListResponse) => {
          return {
            value: result.address.city,
            label: `${result.address.city} (${result.idCount})`,
Severity: Major
Found in src/app/sidebar/sidebar-filter/sidebar-filter.component.ts and 1 other location - About 1 day to fix
src/app/sidebar/sidebar-filter/sidebar-filter.component.ts on lines 76..95

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

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

describe('MainPageComponent', () => {
  let component: MainPageComponent;
  let fixture: ComponentFixture<MainPageComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/main-page/main-page.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('PrivacyPolicyComponent', () => {
  let component: PrivacyPolicyComponent;
  let fixture: ComponentFixture<PrivacyPolicyComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/privacy-policy/privacy-policy.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('ErrorModalComponent', () => {
  let component: ErrorModalComponent;
  let fixture: ComponentFixture<ErrorModalComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/error-modal/error-modal.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('JobListComponent', () => {
  let component: JobListComponent;
  let fixture: ComponentFixture<JobListComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/job-list/job-list.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('StructuredSeoComponent', () => {
  let component: StructuredSeoComponent;
  let fixture: ComponentFixture<StructuredSeoComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/structured-seo/structured-seo.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28

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

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

describe('SidebarFilterComponent', () => {
  let component: SidebarFilterComponent;
  let fixture: ComponentFixture<SidebarFilterComponent>;

  beforeEach(async(() => {
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('SidebarComponent', () => {
  let component: SidebarComponent;
  let fixture: ComponentFixture<SidebarComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/sidebar/sidebar.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('ApplyModalComponent', () => {
  let component: ApplyModalComponent;
  let fixture: ComponentFixture<ApplyModalComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/apply-modal/apply-modal.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('InfoChipsComponent', () => {
  let component: InfoChipsComponent;
  let fixture: ComponentFixture<InfoChipsComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/components/info-chips/info-chips.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-details/job-details.component.spec.ts on lines 8..28
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

describe('JobDetailsComponent', () => {
  let component: JobDetailsComponent;
  let fixture: ComponentFixture<JobDetailsComponent>;

  beforeEach(async(() => {
Severity: Major
Found in src/app/job-details/job-details.component.spec.ts and 9 other locations - About 6 hrs to fix
src/app/apply-modal/apply-modal.component.spec.ts on lines 8..28
src/app/components/info-chips/info-chips.component.spec.ts on lines 8..28
src/app/error-modal/error-modal.component.spec.ts on lines 5..25
src/app/job-list/job-list.component.spec.ts on lines 8..28
src/app/main-page/main-page.component.spec.ts on lines 8..28
src/app/privacy-policy/privacy-policy.component.spec.ts on lines 5..25
src/app/sidebar/sidebar-filter/sidebar-filter.component.spec.ts on lines 6..26
src/app/sidebar/sidebar.component.spec.ts on lines 8..28
src/app/structured-seo/structured-seo.component.spec.ts on lines 8..28

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

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

    if (field && values.length > 0 && field !== '[ FILTER FIELD HERE ]' && values[0] !== '[ FILTER VALUE HERE ]') {
        for (let i: number = 0; i < values.length; i++) {
            if (i > 0) {
                query += ` OR `;
            } else {
Severity: Major
Found in src/app/services/search/search.service.ts and 1 other location - About 5 hrs to fix
generateXml.ts on lines 83..93

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

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

  if (field && values.length > 0 && field !== '[ FILTER FIELD HERE ]' && values[0] !== '[ FILTER VALUE HERE ]') {
    for (let i: number = 0; i < values.length; i++) {
      if (i > 0) {
        query += ` OR `;
      } else {
Severity: Major
Found in generateXml.ts and 1 other location - About 5 hrs to fix
src/app/services/search/search.service.ts on lines 97..107

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

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

describe('Service: ServerResponse', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [ServerResponseService],
    });
src/app/services/analytics/analytics.service.spec.ts on lines 6..16
src/app/services/apply/apply.service.spec.ts on lines 6..16
src/app/services/search/search.service.spec.ts on lines 6..16
src/app/services/settings/settings.service.spec.ts on lines 6..16
src/app/services/share/share.service.spec.ts on lines 5..15

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

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

describe('Service: Apply', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [ApplyService],
    });
Severity: Major
Found in src/app/services/apply/apply.service.spec.ts and 5 other locations - About 2 hrs to fix
src/app/services/analytics/analytics.service.spec.ts on lines 6..16
src/app/services/search/search.service.spec.ts on lines 6..16
src/app/services/server-response/server-response.service.spec.ts on lines 6..16
src/app/services/settings/settings.service.spec.ts on lines 6..16
src/app/services/share/share.service.spec.ts on lines 5..15

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

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

describe('Service: Settings', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [SettingsService],
    });
Severity: Major
Found in src/app/services/settings/settings.service.spec.ts and 5 other locations - About 2 hrs to fix
src/app/services/analytics/analytics.service.spec.ts on lines 6..16
src/app/services/apply/apply.service.spec.ts on lines 6..16
src/app/services/search/search.service.spec.ts on lines 6..16
src/app/services/server-response/server-response.service.spec.ts on lines 6..16
src/app/services/share/share.service.spec.ts on lines 5..15

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

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

xdescribe('Service: Http', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [SearchService],
    });
Severity: Major
Found in src/app/services/search/search.service.spec.ts and 5 other locations - About 2 hrs to fix
src/app/services/analytics/analytics.service.spec.ts on lines 6..16
src/app/services/apply/apply.service.spec.ts on lines 6..16
src/app/services/server-response/server-response.service.spec.ts on lines 6..16
src/app/services/settings/settings.service.spec.ts on lines 6..16
src/app/services/share/share.service.spec.ts on lines 5..15

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

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

describe('ShareService', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [ShareService],
    });
Severity: Major
Found in src/app/services/share/share.service.spec.ts and 5 other locations - About 2 hrs to fix
src/app/services/analytics/analytics.service.spec.ts on lines 6..16
src/app/services/apply/apply.service.spec.ts on lines 6..16
src/app/services/search/search.service.spec.ts on lines 6..16
src/app/services/server-response/server-response.service.spec.ts on lines 6..16
src/app/services/settings/settings.service.spec.ts on lines 6..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 85.

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

describe('Service: Analytics', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [AnalyticsService],
    });
Severity: Major
Found in src/app/services/analytics/analytics.service.spec.ts and 5 other locations - About 2 hrs to fix
src/app/services/apply/apply.service.spec.ts on lines 6..16
src/app/services/search/search.service.spec.ts on lines 6..16
src/app/services/server-response/server-response.service.spec.ts on lines 6..16
src/app/services/settings/settings.service.spec.ts on lines 6..16
src/app/services/share/share.service.spec.ts on lines 5..15

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

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