Showing 7,148 of 10,737 total issues

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

describe('Signup Page Root', () => {
  let fixture: ComponentFixture<SignupPageRootComponent>;
  let component: SignupPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/about-page/about-page-root.component.spec.ts on lines 38..109

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

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

describe('Teach Page Root', () => {
  let fixture: ComponentFixture<TeachPageRootComponent>;
  let component: TeachPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Get Started Page Root', () => {
  let fixture: ComponentFixture<GetStartedPageRootComponent>;
  let component: GetStartedPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Playbook Page Root', () => {
  let fixture: ComponentFixture<PlaybookPageRootComponent>;
  let component: PlaybookPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Terms Page Root', () => {
  let fixture: ComponentFixture<TermsPageRootComponent>;
  let component: TermsPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Thanks Page Root', () => {
  let fixture: ComponentFixture<ThanksPageRootComponent>;
  let component: ThanksPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106

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

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

describe('Login Page Root', () => {
  let fixture: ComponentFixture<LoginPageRootComponent>;
  let component: LoginPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Splash Page Root', () => {
  let fixture: ComponentFixture<SplashPageRootComponent>;
  let component: SplashPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('License Page Root', () => {
  let fixture: ComponentFixture<LicensePageRootComponent>;
  let component: LicensePageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Contact Page Root', () => {
  let fixture: ComponentFixture<ContactPageRootComponent>;
  let component: ContactPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Logout Page Root', () => {
  let fixture: ComponentFixture<LogoutPageRootComponent>;
  let component: LogoutPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/privacy-page/privacy-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

describe('Privacy Page Root', () => {
  let fixture: ComponentFixture<PrivacyPageRootComponent>;
  let component: PrivacyPageRootComponent;
  let pageHeadService: PageHeadService;
  let translateService: TranslateService;
core/templates/pages/contact-page/contact-page-root.component.spec.ts on lines 36..106
core/templates/pages/get-started-page/get-started-page-root.component.spec.ts on lines 36..106
core/templates/pages/license-page/license-page-root.component.spec.ts on lines 36..106
core/templates/pages/login-page/login-page-root.component.spec.ts on lines 35..105
core/templates/pages/logout-page/logout-page-root.component.spec.ts on lines 36..106
core/templates/pages/participation-playbook/playbook-page-root.component.spec.ts on lines 36..106
core/templates/pages/splash-page/splash-page-root.component.spec.ts on lines 36..106
core/templates/pages/teach-page/teach-page-root.component.spec.ts on lines 35..105
core/templates/pages/terms-page/terms-page-root.component.spec.ts on lines 36..106
core/templates/pages/thanks-page/thanks-page-root.component.spec.ts on lines 36..106

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

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

  describe('shiftNodeLeft()', () => {
    it('should correctly shift a node in a single node collection', () => {
      let collection = Collection.createEmptyCollection();
      collection.addCollectionNode(firstCollectionNode);
      expect(
core/templates/pages/collection-editor-page/services/collection-linearizer.service.spec.ts on lines 403..521

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

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

  describe('shiftNodeRight()', () => {
    it('should correctly shift a node in a single node collection', () => {
      let collection = Collection.createEmptyCollection();
      collection.addCollectionNode(firstCollectionNode);
      expect(
core/templates/pages/collection-editor-page/services/collection-linearizer.service.spec.ts on lines 283..401

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

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

  ngOnInit(): void {
    let pathnameArray = this.urlService.getPathname().split('/');
    let explorationContext = false;

    for (let i = 0; i < pathnameArray.length; i++) {
core/templates/pages/exploration-player-page/new-lesson-player/new-lesson-player-components/player-header.component.ts on lines 73..137

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

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

  ngOnInit(): void {
    let pathnameArray = this.urlService.getPathname().split('/');
    let explorationContext = false;

    for (let i = 0; i < pathnameArray.length; i++) {
core/templates/pages/exploration-player-page/layout-directives/learner-view-info.component.ts on lines 71..135

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

      it('should return false for no rule', () => {
        expect(
          girs.HasGraphProperty(undirectedEmptyGraph(), {
            p: 'no_rule',
          })
extensions/interactions/GraphInput/directives/graph-input-rules.service.spec.ts on lines 1241..1366

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    it('should detect undirected regular graphs', () => {
      expect(
        girs.HasGraphProperty(undirectedEmptyGraph(), {
          p: 'regular',
        })
extensions/interactions/GraphInput/directives/graph-input-rules.service.spec.ts on lines 1475..1600

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

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

describe('BlogAdminAuthGuard', () => {
  let userService: UserService;
  let router: Router;
  let guard: BlogAdminAuthGuard;

core/templates/pages/voiceover-admin-page/voiceover-admin-page-auth.guard.spec.ts on lines 39..105

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

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

describe('VoiceoverAdminAuthGuard', () => {
  let userService: UserService;
  let router: Router;
  let guard: VoiceoverAdminAuthGuard;

core/templates/pages/blog-admin-page/blog-admin-auth.guard.spec.ts on lines 39..105

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

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