opf/openproject

View on GitHub

Showing 1,042 of 1,682 total issues

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

  public text = {
    newFeatures: this.i18n.t('js.label_new_features'),
    descriptionNewFeatures: this.i18n.t('js.homescreen.blocks.new_features.text_new_features'),
    learnAbout: this.i18n.t('js.homescreen.blocks.new_features.learn_about'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  markError(message:string) {
    this.error = this.I18n.t('js.editor.macro.error', { message });
    this.cdRef.detectChanges();
  }
frontend/src/app/shared/components/fields/macros/attribute-value-macro.component.ts on lines 147..150

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  text = {
    tracking: this.I18n.t('js.time_entry.tracking'),
    stop: this.I18n.t('js.time_entry.stop'),
    timer_already_stopped: this.I18n.t('js.timer.timer_already_stopped'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  public text = {
    does_not_match_search: this.I18n.t('js.include_projects.tooltip.does_not_match_search'),
    include_all_selected: this.I18n.t('js.include_projects.tooltip.include_all_selected'),
    current_project: this.I18n.t('js.include_projects.tooltip.current_project'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  text = {
    add_setting: this.I18n.t('js.notifications.settings.project_specific.add'),
    please_select: this.I18n.t('js.placeholders.selection'),
    already_selected: this.I18n.t('js.notifications.settings.project_specific.already_selected'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  public text = {
    toggleHierarchy: this.I18n.t('js.work_packages.hierarchy.show'),
    openMenu: this.I18n.t('js.label_open_menu'),
    baselineIncompatible: this.I18n.t('js.work_packages.baseline.column_incompatible'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  public text = {
    isLocked: this.I18n.t('js.boards.version.is_locked'),
    isClosed: this.I18n.t('js.boards.version.is_closed'),
    version: this.I18n.t('js.work_packages.properties.version'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  public text = {
    invalid_email: this.I18n.t('js.admin.enterprise.trial.form.invalid_email'),
    taken_email: this.I18n.t('js.admin.enterprise.trial.form.taken_email'),
    taken_domain: this.I18n.t('js.admin.enterprise.trial.form.taken_domain'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  text = {
    date: this.I18n.t('js.work_packages.properties.date'),
    placeholder: this.I18n.t('js.placeholders.default'),
    spacer: this.I18n.t('js.filter.value_spacer'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  public text = {
    explanation: this.I18n.t('js.label_edit_status'),
    workPackageReadOnly: this.I18n.t('js.work_packages.message_work_package_read_only'),
    workPackageStatusBlocked: this.I18n.t('js.work_packages.message_work_package_status_blocked'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  text = {
    loading: this.I18n.t('js.ajax.loading'),
    placeholder: this.I18n.t('js.placeholders.default'),
    mark_as_read: this.I18n.t('js.notifications.center.mark_as_read'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  text = {
    empty_state: this.I18n.t('js.team_planner.quick_add.empty_state'),
    placeholder: this.I18n.t('js.team_planner.quick_add.search_placeholder'),
    no_results: this.I18n.t('js.autocompleter.notFoundText'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  readonly text = {
    open_dialog: this.I18n.t('js.help_texts.show_modal'),
    edit: this.I18n.t('js.button_edit'),
    close: this.I18n.t('js.button_close'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  text = {
    empty_warning: this.I18n.t('js.ifc_models.empty_warning'),
    use_this_link_to_manage: this.I18n.t('js.ifc_models.use_this_link_to_manage'),
    keyboard_input_disabled: this.I18n.t('js.ifc_models.keyboard_input_disabled'),
  };
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts on lines 29..33
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  markError(message:string) {
    this.error = this.I18n.t('js.editor.macro.error', { message });
    this.cdRef.detectChanges();
  }
frontend/src/app/shared/components/fields/macros/attribute-label-macro.component.ts on lines 130..133

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  public text = {
    abort: this.I18n.t('js.relation_buttons.abort'),
    relationType: this.I18n.t('js.relation_buttons.relation_type'),
    addNewRelation: this.I18n.t('js.relation_buttons.add_new_relation'),
  };
frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts on lines 64..68
frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts on lines 45..49
frontend/src/app/features/enterprise/enterprise-trial.service.ts on lines 97..101
frontend/src/app/features/homescreen/blocks/new-features.component.ts on lines 79..83
frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts on lines 40..44
frontend/src/app/features/team-planner/team-planner/add-work-packages/add-existing-pane.component.ts on lines 104..108
frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts on lines 35..39
frontend/src/app/features/user-preferences/reminder-settings/immediate-reminders/immediate-reminder-settings.component.ts on lines 21..25
frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts on lines 50..54
frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts on lines 70..74
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts on lines 65..69
frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts on lines 43..47
frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts on lines 124..128
frontend/src/app/shared/components/grids/widgets/members/members.component.ts on lines 28..32
frontend/src/app/shared/components/project-include/list/project-include-list.component.ts on lines 77..81
frontend/src/app/shared/components/time_entries/timer/timer-account-menu.component.ts on lines 54..58
modules/gitlab_integration/frontend/module/issue/issue.component.ts on lines 47..51

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  protected focusOnFirstError():void {
    // Focus the first field that is erroneous
    jQuery(this.elementRef.nativeElement)
      .find(`.${activeFieldContainerClassName}.-error .${activeFieldClassName}`)
      .first()
frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts on lines 155..161

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  private unhover = (evt:MouseEvent) => {
    const col = this.getColumn(evt.target as HTMLElement);
    col?.classList.remove('hover');
  };
frontend/src/stimulus/controllers/table-highlighting.controller.ts on lines 59..62

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

  private hover = (evt:MouseEvent) => {
    const col = this.getColumn(evt.target as HTMLElement);
    col?.classList.add('hover');
  };
frontend/src/stimulus/controllers/table-highlighting.controller.ts on lines 64..67

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

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

    _.each(allowedActions, (allowedAction) => {
      singularPermittedActions.push({
        key: allowedAction.key,
        text: allowedAction.text,
        icon: allowedAction.icon,
frontend/src/app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts on lines 131..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 57.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language