Ontica/Empiria.Land.Intranet

View on GitHub

Showing 370 of 516 total issues

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

export class SubjectFeaturesComponent implements OnChanges {

  @Input() subjectUID: string = '';

  @Input() subjectContextsList: Identifiable[] = [];
src/app/views/_access-control/subjects/subject-roles.component.ts on lines 20..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 929.

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

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

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

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

Refactorings

Further Reading

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

export class SubjectRolesComponent implements OnChanges {

  @Input() subjectUID: string = '';

  @Input() subjectContextsList: Identifiable[] = [];
src/app/views/_access-control/subjects/subject-features.component.ts on lines 23..148

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

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

  private validateBookEntryFields() {
    this.formHelper.clearControlValidators(this.form.controls.bookEntryUID);
    this.formHelper.clearControlValidators(this.form.controls.bookEntryNo);
    this.formHelper.clearControlValidators(this.form.controls.authorizationDate);

src/app/views/registration/recording-acts/recording-act-creator.component.ts on lines 365..383

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

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

  private validateBookEntryFields() {
    this.formHelper.clearControlValidators(this.form.controls.bookEntryUID);
    this.formHelper.clearControlValidators(this.form.controls.bookEntryNo);
    this.formHelper.clearControlValidators(this.form.controls.authorizationDate);

src/app/views/certificate-emission/certificate-creator.component.ts on lines 235..253

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

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

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

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

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

Refactorings

Further Reading

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

export class EmpIntegerDirective {

  constructor(private el: ElementRef,
              @Optional() private control: NgControl) { }

Severity: Major
Found in src/app/shared/directives/integer.directive.ts and 1 other location - About 1 day to fix
src/app/shared/directives/numeration.directive.ts on lines 16..41

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 221.

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

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

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

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

Refactorings

Further Reading

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

export class EmpNumerationDirective {

  constructor(private el: ElementRef,
              @Optional() private control: NgControl) { }

Severity: Major
Found in src/app/shared/directives/numeration.directive.ts and 1 other location - About 1 day to fix
src/app/shared/directives/integer.directive.ts on lines 15..39

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 221.

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

  onBookEntryEditorEvent(event) {
    if (this.submitted) {
      return;
    }

src/app/views/registration/recording-book/recording-book-edition.component.ts on lines 132..153

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

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

  onBookEntryEditorEvent(event) {
    if (this.submitted) {
      return;
    }

src/app/views/registration/recording-book/book-entry-edition.component.ts on lines 89..110

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

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

  private validateSelectBookEntryRule(data: RegistrationCommandPayload) {
    if (this.registrationCommandRules.selectBookEntry) {
      const formModel = this.form.getRawValue();

      data.recordingBookUID = formModel.recordingBook.uid ?? '';
src/app/views/certificate-emission/certificate-creator.component.ts on lines 366..383

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

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

  private validateSelectBookEntryRule(data: CreateCertificateCommandPayload) {
    if (this.certificateRulesSelected.selectBookEntry) {
      const formModel = this.form.getRawValue();

      data.recordingBookUID = formModel.recordingBook.uid ?? '';
src/app/views/registration/recording-acts/recording-act-creator.component.ts on lines 483..500

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

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

  onNoPropertyEditorEvent(event) {
    if (this.submitted) {
      return;
    }

src/app/views/registration/recordable-subject/recordable-subject-editor.component.ts on lines 86..104

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

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

  onRealEstateEditorEvent(event) {
    if (this.submitted) {
      return;
    }

src/app/views/registration/recordable-subject/recordable-subject-editor.component.ts on lines 107..125

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

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

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

  beforeEach(waitForAsync(() => {
src/app/shared/containers/message-box/message-box.component.spec.ts on lines 13..33
src/app/views/land-controls/recordable-subject/recordable-subject-view.component.spec.ts on lines 13..33
src/app/views/land-list/land-explorer/land-list.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list-item.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/book-entry-main-page/book-entry-main-page.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/historic-registration-main-page/historic-registration-main-page.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-transaction-tabbed-view.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/transactions-main-page.component.spec.ts on lines 12..32

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

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

  beforeEach(waitForAsync(() => {
src/app/shared/containers/message-box/message-box.component.spec.ts on lines 13..33
src/app/views/land-controls/recordable-subject/recordable-subject-view.component.spec.ts on lines 13..33
src/app/views/land-list/land-explorer/land-list.component.spec.ts on lines 13..33
src/app/views/land-list/land-list-items/transaction-list-item.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list-item.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/book-entry-main-page/book-entry-main-page.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-transaction-tabbed-view.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/transactions-main-page.component.spec.ts on lines 12..32

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

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

  beforeEach(waitForAsync(() => {
src/app/shared/containers/message-box/message-box.component.spec.ts on lines 13..33
src/app/views/land-controls/recordable-subject/recordable-subject-view.component.spec.ts on lines 13..33
src/app/views/land-list/land-explorer/land-list.component.spec.ts on lines 13..33
src/app/views/land-list/land-list-items/transaction-list-item.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list-item.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/historic-registration-main-page/historic-registration-main-page.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-transaction-tabbed-view.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/transactions-main-page.component.spec.ts on lines 12..32

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

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

  beforeEach(waitForAsync(() => {
src/app/shared/containers/message-box/message-box.component.spec.ts on lines 13..33
src/app/views/land-controls/recordable-subject/recordable-subject-view.component.spec.ts on lines 13..33
src/app/views/land-list/land-explorer/land-list.component.spec.ts on lines 13..33
src/app/views/land-list/land-list-items/transaction-list-item.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list-item.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/book-entry-main-page/book-entry-main-page.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/historic-registration-main-page/historic-registration-main-page.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/transactions-main-page.component.spec.ts on lines 12..32

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

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

  beforeEach(waitForAsync(() => {
src/app/shared/containers/message-box/message-box.component.spec.ts on lines 13..33
src/app/views/land-controls/recordable-subject/recordable-subject-view.component.spec.ts on lines 13..33
src/app/views/land-list/land-list-items/transaction-list-item.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list-item.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/book-entry-main-page/book-entry-main-page.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/historic-registration-main-page/historic-registration-main-page.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-transaction-tabbed-view.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/transactions-main-page.component.spec.ts on lines 12..32

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

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

  beforeEach(waitForAsync(() => {
src/app/shared/containers/message-box/message-box.component.spec.ts on lines 13..33
src/app/views/land-controls/recordable-subject/recordable-subject-view.component.spec.ts on lines 13..33
src/app/views/land-list/land-explorer/land-list.component.spec.ts on lines 13..33
src/app/views/land-list/land-list-items/transaction-list-item.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list-item.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/book-entry-main-page/book-entry-main-page.component.spec.ts on lines 13..33
src/app/workspaces/historic-registration/historic-registration-main-page/historic-registration-main-page.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-transaction-tabbed-view.component.spec.ts on lines 13..33

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

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

  beforeEach(async () => {
src/app/views/_access-control/access-control-tabbed-view/access-control-tabbed-view.component.spec.ts on lines 12..32
src/app/views/_access-control/access-control-viewer/access-control-controls.component.spec.ts on lines 12..32
src/app/views/_access-control/access-control-viewer/access-control-filter.component.spec.ts on lines 12..32
src/app/views/_access-control/access-control-viewer/access-control-viewer.component.spec.ts on lines 12..32
src/app/views/_access-control/credentials/change-password-modal.component.spec.ts on lines 12..32
src/app/views/_access-control/security-item/security-item-assign.component.spec.ts on lines 12..32
src/app/views/_access-control/security-item/security-item-edition.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-contexts.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-creator.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-editor.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-features.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-header.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-roles.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-tabbed-view.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subjects-table.component.spec.ts on lines 12..32
src/app/views/_reports-controls/data-table/data-table-controls.component.spec.ts on lines 12..32
src/app/views/_reports-controls/data-table/data-table.component.spec.ts on lines 12..32
src/app/views/_reports-controls/export-report-modal/export-report-modal.component.spec.ts on lines 12..32
src/app/views/_tools/recordable-subjects-search-tool.component.spec.ts on lines 12..32
src/app/views/certificate-emission/certificate-creator.component.spec.ts on lines 5..25
src/app/views/certificate-emission/certificate-edition.component.spec.ts on lines 13..33
src/app/views/certificate-emission/certificate-list.component.spec.ts on lines 5..25
src/app/views/land-controls/recordable-subject/recordable-subject-searcher.component.spec.ts on lines 5..25
src/app/views/land-controls/recording-book-selector/recording-book-selector.component.spec.ts on lines 12..32
src/app/views/land-controls/recording-views-buttons/recording-views-buttons.component.spec.ts on lines 5..25
src/app/views/land-controls/tract-index/tract-index-entries-table.component.spec.ts on lines 12..32
src/app/views/land-list/land-list-selector/land-list-selector.component.spec.ts on lines 13..33
src/app/views/recordable-subjects/instrument/instrument-editor.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/no-property/no-property-editor.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/parties/party-editor.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/parties/party-list.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/parties/party-selector.component.spec.ts on lines 5..25
src/app/views/recordable-subjects/real-estate/real-estate-editor.component.spec.ts on lines 13..33
src/app/views/registration/instrument-book-entries/instrument-book-entry-creator.component.spec.ts on lines 13..33
src/app/views/registration/instrument-book-entries/instrument-book-entry-list.component.spec.ts on lines 13..33
src/app/views/registration/recordable-subject/recordable-subject-editor.component.spec.ts on lines 13..33
src/app/views/registration/recordable-subject/recordable-subject-history.component.spec.ts on lines 13..33
src/app/views/registration/recording-acts/recording-act-creator-modal.component.spec.ts on lines 13..33
src/app/views/registration/recording-acts/recording-act-creator.component.spec.ts on lines 5..25
src/app/views/registration/recording-acts/recording-act-edition-modal.component.spec.ts on lines 13..33
src/app/views/registration/recording-acts/recording-act-edition.component.spec.ts on lines 5..25
src/app/views/registration/recording-acts/recording-act-editor.component.spec.ts on lines 5..25
src/app/views/registration/recording-acts/recording-acts-list.component.spec.ts on lines 13..33
src/app/views/registration/recording-book/book-entry-edition.component.spec.ts on lines 12..32
src/app/views/registration/recording-book/book-entry-editor.component.spec.ts on lines 5..25
src/app/views/registration/recording-book/book-entry-list.component.spec.ts on lines 12..32
src/app/views/registration/recording-book/recording-book-edition.component.spec.ts on lines 12..32
src/app/views/registration/registry-entry/registry-entry-editor.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-filter.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list.component.spec.ts on lines 12..32
src/app/views/search-services/record-search/record-search.component.spec.ts on lines 12..32
src/app/views/search-services/tract-index-entry-tabbed-view/tract-index-entry-printable-viewer.component.spec.ts on lines 13..33
src/app/views/search-services/tract-index-entry-tabbed-view/tract-index-entry-tabbed-view.component.spec.ts on lines 13..33
src/app/views/search-services/tract-index-explorer/tract-index-entries-filter.component.spec.ts on lines 13..33
src/app/views/search-services/tract-index-explorer/tract-index-entries-history.component.spec.ts on lines 12..32
src/app/views/search-services/tract-index-explorer/tract-index-entries-viewer.component.spec.ts on lines 12..32
src/app/views/search-services/tract-index-explorer/tract-index-explorer.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-creator/transaction-creator.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-editor/requested-services/requested-service-editor.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-editor/requested-services/requested-service-list.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-editor/transaction-editor.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-files/transaction-files.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-header/transaction-header.component.spec.ts on lines 13..33
src/app/views/transactions/workflow-commander/workflow-command-config.component.spec.ts on lines 13..33
src/app/views/transactions/workflow-commander/workflow-commander.component.spec.ts on lines 13..33
src/app/views/transactions/workflow-history/workflow-history.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-certification.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-pre-registration.component.spec.ts on lines 13..33
src/app/workspaces/system-management/access-control-main-page/access-control-main-page.component.spec.ts on lines 12..32
src/app/workspaces/system-management/control-panel-main-page/control-panel-page.component.spec.ts on lines 12..32

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

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

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

  beforeEach(async () => {
src/app/views/_access-control/access-control-tabbed-view/access-control-tabbed-view.component.spec.ts on lines 12..32
src/app/views/_access-control/access-control-viewer/access-control-controls.component.spec.ts on lines 12..32
src/app/views/_access-control/access-control-viewer/access-control-filter.component.spec.ts on lines 12..32
src/app/views/_access-control/access-control-viewer/access-control-viewer.component.spec.ts on lines 12..32
src/app/views/_access-control/credentials/change-password-modal.component.spec.ts on lines 12..32
src/app/views/_access-control/security-item/security-item-assign.component.spec.ts on lines 12..32
src/app/views/_access-control/security-item/security-item-edition.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-contexts.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-creator.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-editor.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-features.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-header.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-roles.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subject-tabbed-view.component.spec.ts on lines 12..32
src/app/views/_access-control/subjects/subjects-table.component.spec.ts on lines 12..32
src/app/views/_reports-controls/data-table/data-table-controls.component.spec.ts on lines 12..32
src/app/views/_reports-controls/export-report-modal/export-report-modal.component.spec.ts on lines 12..32
src/app/views/_tools/recordable-subjects-search-tool.component.spec.ts on lines 12..32
src/app/views/certificate-emission/certificate-creator.component.spec.ts on lines 5..25
src/app/views/certificate-emission/certificate-edition.component.spec.ts on lines 13..33
src/app/views/certificate-emission/certificate-list.component.spec.ts on lines 5..25
src/app/views/land-controls/recordable-subject/recordable-subject-searcher.component.spec.ts on lines 5..25
src/app/views/land-controls/recording-book-selector/recording-book-selector.component.spec.ts on lines 12..32
src/app/views/land-controls/recording-views-buttons/recording-views-buttons.component.spec.ts on lines 5..25
src/app/views/land-controls/tract-index/tract-index-entries-table.component.spec.ts on lines 12..32
src/app/views/land-list/land-list-selector/land-list-selector.component.spec.ts on lines 13..33
src/app/views/recordable-subjects/instrument/instrument-editor.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/no-property/no-property-editor.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/parties/party-editor.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/parties/party-list.component.spec.ts on lines 12..32
src/app/views/recordable-subjects/parties/party-selector.component.spec.ts on lines 5..25
src/app/views/recordable-subjects/real-estate/real-estate-editor.component.spec.ts on lines 13..33
src/app/views/registration/instrument-book-entries/instrument-book-entry-creator.component.spec.ts on lines 13..33
src/app/views/registration/instrument-book-entries/instrument-book-entry-list.component.spec.ts on lines 13..33
src/app/views/registration/recordable-subject/recordable-subject-editor.component.spec.ts on lines 13..33
src/app/views/registration/recordable-subject/recordable-subject-history.component.spec.ts on lines 13..33
src/app/views/registration/recording-acts/recording-act-creator-modal.component.spec.ts on lines 13..33
src/app/views/registration/recording-acts/recording-act-creator.component.spec.ts on lines 5..25
src/app/views/registration/recording-acts/recording-act-edition-modal.component.spec.ts on lines 13..33
src/app/views/registration/recording-acts/recording-act-edition.component.spec.ts on lines 5..25
src/app/views/registration/recording-acts/recording-act-editor.component.spec.ts on lines 5..25
src/app/views/registration/recording-acts/recording-acts-list.component.spec.ts on lines 13..33
src/app/views/registration/recording-book/book-entry-edition.component.spec.ts on lines 12..32
src/app/views/registration/recording-book/book-entry-editor.component.spec.ts on lines 5..25
src/app/views/registration/recording-book/book-entry-list.component.spec.ts on lines 12..32
src/app/views/registration/recording-book/recording-book-edition.component.spec.ts on lines 12..32
src/app/views/registration/registry-entry/registry-entry-editor.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-filter.component.spec.ts on lines 13..33
src/app/views/search-services/record-search/record-search-list.component.spec.ts on lines 12..32
src/app/views/search-services/record-search/record-search.component.spec.ts on lines 12..32
src/app/views/search-services/tract-index-entry-tabbed-view/tract-index-entry-printable-viewer.component.spec.ts on lines 13..33
src/app/views/search-services/tract-index-entry-tabbed-view/tract-index-entry-tabbed-view.component.spec.ts on lines 13..33
src/app/views/search-services/tract-index-explorer/tract-index-entries-filter.component.spec.ts on lines 13..33
src/app/views/search-services/tract-index-explorer/tract-index-entries-history.component.spec.ts on lines 12..32
src/app/views/search-services/tract-index-explorer/tract-index-entries-viewer.component.spec.ts on lines 12..32
src/app/views/search-services/tract-index-explorer/tract-index-explorer.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-creator/transaction-creator.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-editor/requested-services/requested-service-editor.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-editor/requested-services/requested-service-list.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-editor/transaction-editor.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-files/transaction-files.component.spec.ts on lines 13..33
src/app/views/transactions/transaction-header/transaction-header.component.spec.ts on lines 13..33
src/app/views/transactions/workflow-commander/workflow-command-config.component.spec.ts on lines 13..33
src/app/views/transactions/workflow-commander/workflow-commander.component.spec.ts on lines 13..33
src/app/views/transactions/workflow-history/workflow-history.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-certification.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-pre-registration.component.spec.ts on lines 13..33
src/app/workspaces/land-transactions/transactions-main-page/parts/land-registration.component.spec.ts on lines 13..33
src/app/workspaces/system-management/access-control-main-page/access-control-main-page.component.spec.ts on lines 12..32
src/app/workspaces/system-management/control-panel-main-page/control-panel-page.component.spec.ts on lines 12..32

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

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