Ontica/Empiria.Land.Intranet

View on GitHub

Showing 370 of 516 total issues

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

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

  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/_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

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

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

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

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

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

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

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

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

  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/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

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

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

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

  async signMyTransactionDocuments(command: ESignCommand): Promise<void> {
    Assertion.assertValue(command, 'command');
    Assertion.assertValue(command.commandType, 'command.commandType');
    Assertion.assertValue(command.credentials, 'command.credentials');
    Assertion.assertValue(command.transactionUIDs, 'command.transactionUIDs');
Severity: Major
Found in src/app/data-services/e-sign.data.service.ts and 3 other locations - About 5 hrs to fix
src/app/data-services/e-sign.data.service.ts on lines 46..57
src/app/data-services/e-sign.data.service.ts on lines 60..71
src/app/data-services/e-sign.data.service.ts on lines 74..85

Duplicated Code

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

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

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

Tuning

This issue has a mass of 150.

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

  async revokeMyTransactionDocuments(command: ESignCommand): Promise<void> {
    Assertion.assertValue(command, 'command');
    Assertion.assertValue(command.commandType, 'command.commandType');
    Assertion.assertValue(command.credentials, 'command.credentials');
    Assertion.assertValue(command.transactionUIDs, 'command.transactionUIDs');
Severity: Major
Found in src/app/data-services/e-sign.data.service.ts and 3 other locations - About 5 hrs to fix
src/app/data-services/e-sign.data.service.ts on lines 32..43
src/app/data-services/e-sign.data.service.ts on lines 60..71
src/app/data-services/e-sign.data.service.ts on lines 74..85

Duplicated Code

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

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

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

Tuning

This issue has a mass of 150.

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

  async refuseMyTransactionDocuments(command: ESignCommand): Promise<void> {
    Assertion.assertValue(command, 'command');
    Assertion.assertValue(command.commandType, 'command.commandType');
    Assertion.assertValue(command.credentials, 'command.credentials');
    Assertion.assertValue(command.transactionUIDs, 'command.transactionUIDs');
Severity: Major
Found in src/app/data-services/e-sign.data.service.ts and 3 other locations - About 5 hrs to fix
src/app/data-services/e-sign.data.service.ts on lines 32..43
src/app/data-services/e-sign.data.service.ts on lines 46..57
src/app/data-services/e-sign.data.service.ts on lines 74..85

Duplicated Code

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

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

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

Tuning

This issue has a mass of 150.

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

  async unrefuseMyTransactionDocuments(command: ESignCommand): Promise<void> {
    Assertion.assertValue(command, 'command');
    Assertion.assertValue(command.commandType, 'command.commandType');
    Assertion.assertValue(command.credentials, 'command.credentials');
    Assertion.assertValue(command.transactionUIDs, 'command.transactionUIDs');
Severity: Major
Found in src/app/data-services/e-sign.data.service.ts and 3 other locations - About 5 hrs to fix
src/app/data-services/e-sign.data.service.ts on lines 32..43
src/app/data-services/e-sign.data.service.ts on lines 46..57
src/app/data-services/e-sign.data.service.ts on lines 60..71

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

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-modal.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-explorer.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-actions.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-controls.component.spec.ts on lines 12..30
src/app/workspaces/land-transactions/e-sign-main-page/e-sign-main-page.component.spec.ts on lines 12..30
src/app/workspaces/system-security/authentication-main-page/authentication-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-form.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-explorer.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-actions.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-controls.component.spec.ts on lines 12..30
src/app/workspaces/land-transactions/e-sign-main-page/e-sign-main-page.component.spec.ts on lines 12..30
src/app/workspaces/system-security/authentication-main-page/authentication-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-form.component.spec.ts on lines 12..30
src/app/views/e-sign/e-sign-modal/e-sign-modal.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-explorer.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-controls.component.spec.ts on lines 12..30
src/app/workspaces/land-transactions/e-sign-main-page/e-sign-main-page.component.spec.ts on lines 12..30
src/app/workspaces/system-security/authentication-main-page/authentication-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-form.component.spec.ts on lines 12..30
src/app/views/e-sign/e-sign-modal/e-sign-modal.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-explorer.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-actions.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-controls.component.spec.ts on lines 12..30
src/app/workspaces/land-transactions/e-sign-main-page/e-sign-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-form.component.spec.ts on lines 12..30
src/app/views/e-sign/e-sign-modal/e-sign-modal.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-actions.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-controls.component.spec.ts on lines 12..30
src/app/workspaces/land-transactions/e-sign-main-page/e-sign-main-page.component.spec.ts on lines 12..30
src/app/workspaces/system-security/authentication-main-page/authentication-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-form.component.spec.ts on lines 12..30
src/app/views/e-sign/e-sign-modal/e-sign-modal.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-explorer.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-actions.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-controls.component.spec.ts on lines 12..30
src/app/workspaces/system-security/authentication-main-page/authentication-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

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

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

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

Refactorings

Further Reading

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

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

  beforeEach(async () => {
src/app/views/e-sign/e-sign-modal/e-sign-form.component.spec.ts on lines 12..30
src/app/views/e-sign/e-sign-modal/e-sign-modal.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-explorer.component.spec.ts on lines 12..30
src/app/views/land-list/land-explorer/land-list-actions.component.spec.ts on lines 12..30
src/app/workspaces/land-transactions/e-sign-main-page/e-sign-main-page.component.spec.ts on lines 12..30
src/app/workspaces/system-security/authentication-main-page/authentication-main-page.component.spec.ts on lines 12..30

Duplicated Code

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

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

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

Tuning

This issue has a mass of 144.

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

interface PartyFormModel extends FormGroup<{
  fullName: FormControl<string>;
  curp: FormControl<string>;
  rfc: FormControl<string>;
  partyNotes: FormControl<string>;
src/app/views/transactions/transaction-header/transaction-header.component.ts on lines 34..44

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

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

interface TransactionFormModel extends FormGroup<{
  type: FormControl<string>;
  subtype: FormControl<string>;
  name: FormControl<string>;
  email: FormControl<string>;
src/app/views/recordable-subjects/parties/party-editor.component.ts on lines 23..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 132.

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 MainMenuLeftComponent {

  appLayoutConfig = APP_CONFIG.layout;

  layouts: Layout[] = APP_LAYOUTS;
src/app/main-layout/main-menu/main-menu.component.ts on lines 21..35

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

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 MainMenuComponent {

  appLayoutConfig = APP_CONFIG.layout;

  layouts: Layout[] = APP_LAYOUTS;
Severity: Major
Found in src/app/main-layout/main-menu/main-menu.component.ts and 1 other location - About 4 hrs to fix
src/app/main-layout/main-menu-left/main-menu-left.component.ts on lines 21..35

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

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