YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/Calendar/resources/Edit.js

Summary

Maintainability
F
5 days
Test Coverage

File Edit.js has 564 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*+***********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
Severity: Major
Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 day to fix

    Function registerInviteEvent has 84 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerInviteEvent: function (editViewForm) {
                this.registerRow(editViewForm);
                let participantsContent = editViewForm.find('.js-participants-content');
                let participantsSearch = editViewForm.find('.js-participants-search');
                $.widget('custom.ivAutocomplete', $.ui.autocomplete, {
    Severity: Major
    Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 3 hrs to fix

      `` has 23 functions (exceeds 20 allowed). Consider refactoring.
      Open

          {
              init() {
                  Calendar_Edit_Js.currencyInstance = this;
              },
              registerReminderFieldCheckBox: function () {
      Severity: Minor
      Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 2 hrs to fix

        Function getRule has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                getRule: function () {
                    var form = this.getForm();
                    var freq = form.find('.recurringType').val();
                    var rule = 'FREQ=' + freq;
                    rule += ';INTERVAL=' + form.find('.repeatFrequency').val();
        Severity: Major
        Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 2 hrs to fix

          Function setDefaultEndTime has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
          Open

                  setDefaultEndTime: function (container) {
                      const self = this;
                      if (container.find('.js-autofill').is(':checked')) {
                          self.getFreeTime(container);
                      } else {
          Severity: Minor
          Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function setDefaultEndTime has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  setDefaultEndTime: function (container) {
                      const self = this;
                      if (container.find('.js-autofill').is(':checked')) {
                          self.getFreeTime(container);
                      } else {
          Severity: Minor
          Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

            Function registerAutoFillHours has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    registerAutoFillHours: function (container) {
                        const thisInstance = this;
                        let allDay = container.find('[name="allday"]'),
                            timeStart = container.find('[name="time_start"]'),
                            timeEnd = container.find('[name="time_end"]'),
            Severity: Minor
            Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

              Function registerFormSubmitEvent has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      registerFormSubmitEvent: function (form) {
                          var thisInstance = this;
                          var lockSave = true;
                          if (app.getRecordId()) {
                              form.on(Vtiger_Edit_Js.recordPreSave, function (e) {
              Severity: Minor
              Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                Function getRule has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        getRule: function () {
                            var form = this.getForm();
                            var freq = form.find('.recurringType').val();
                            var rule = 'FREQ=' + freq;
                            rule += ';INTERVAL=' + form.find('.repeatFrequency').val();
                Severity: Minor
                Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function registerTimeStartChangeEvent has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        registerTimeStartChangeEvent(container) {
                            const thisInstance = this;
                            container.find('input[name="time_start"]').on('change', function (e) {
                                thisInstance.setDefaultEndTime(container);
                            });
                Severity: Minor
                Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                  Function select has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  select: (event, ui) => {
                                      let selected = ui.item;
                                      //To stop selection if no results is selected
                                      if (typeof selected.type !== 'undefined' && selected.type == 'no results') {
                                          return false;
                  Severity: Minor
                  Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                    Function getFreeTime has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            getFreeTime: function (container) {
                                let ownerId = container.find('[name="assigned_user_id"], [data-element-name="assigned_user_id"]');
                                if (ownerId.length === 0 || !ownerId.val()) {
                                    return;
                                }
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                      Function toggleTimesInputs has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                              toggleTimesInputs: function (container) {
                                  container.find(':checkbox').on('change', function () {
                                      var checkboxName = $(this).attr('name');
                                      if ('allday' == checkboxName) {
                                          var checkboxIsChecked = $(this).is(':checked');
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function registerAddInvitation has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              registerAddInvitation(container) {
                                  container.find('.js-btn-add-invitation').on('click', (e) => {
                                      let progressIndicatorElement = $.progressIndicator();
                                      app.showModalWindow(null, 'index.php?module=Calendar&view=InviteEmail', (data) => {
                                          data.find('.js-modal__save').on('click', (e) => {
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                        Function registerInviteEvent has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                                registerInviteEvent: function (editViewForm) {
                                    this.registerRow(editViewForm);
                                    let participantsContent = editViewForm.find('.js-participants-content');
                                    let participantsSearch = editViewForm.find('.js-participants-search');
                                    $.widget('custom.ivAutocomplete', $.ui.autocomplete, {
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

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

                                        _renderMenu: function (ul, items) {
                                            let that = this,
                                                currentCategory = '';
                                            $.each(items, function (_index, item) {
                                                if (item.category != currentCategory) {
                        Severity: Major
                        Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js and 1 other location - About 3 hrs to fix
                        public_html/layouts/basic/modules/Vtiger/resources/Header.js on lines 160..170

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

                        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

                                        form.find('.repeatWeekUI [type="checkbox"]').each(function () {
                                            var currentTarget = $(this);
                                            if (currentTarget.is(':checked')) {
                                                checkedElements.push(currentTarget.val());
                                            }
                        public_html/layouts/basic/modules/Notification/resources/NotificationConfig.js on lines 22..27

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

                        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

                                        } else {
                                            container.find('[name="followup_display"]').removeAttr('disabled');
                                            container.find('button').removeAttr('disabled');
                                            repeatUI.closest('.fieldRow').addClass('d-none');
                                        }
                        public_html/layouts/basic/modules/Settings/PDF/resources/Edit1.js on lines 176..180

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

                        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

                                        _renderItem: function (ul, item) {
                                            return $('<li>').data('item.autocomplete', item).append($('<a></a>').html(item.label)).appendTo(ul);
                                        }
                        public_html/layouts/basic/modules/OpenStreetMap/resources/Map.js on lines 270..272

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

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

                                    } else if (recurringType == 'MONTHLY') {
                                        container.find('.repeatWeekUI').removeClass('show').addClass('d-none');
                                        container.find('.repeatMonthUI').removeClass('d-none').addClass('show');
                                    }
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 90..99
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 93..99

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

                        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

                                        if (autoFill.is(':checked')) {
                                            $(e.currentTarget).closest('.input-group-text').removeClass('bg-color-blue-700').removeClass('text-white');
                                            autoFill.prop('checked', false).trigger('change');
                                        } else {
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 363..366

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

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

                                    if (recurringType == 'DAILY' || recurringType == 'YEARLY') {
                                        container.find('.repeatWeekUI').removeClass('show').addClass('d-none');
                                        container.find('.repeatMonthUI').removeClass('show').addClass('d-none');
                                    } else if (recurringType == 'WEEKLY') {
                                        container.find('.repeatWeekUI').removeClass('d-none').addClass('show');
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 93..99
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 96..99

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

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

                                    } else if (recurringType == 'WEEKLY') {
                                        container.find('.repeatWeekUI').removeClass('d-none').addClass('show');
                                        container.find('.repeatMonthUI').removeClass('show').addClass('d-none');
                                    } else if (recurringType == 'MONTHLY') {
                                        container.find('.repeatWeekUI').removeClass('show').addClass('d-none');
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 90..99
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 96..99

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

                        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

                                        } else {
                                            $(e.currentTarget).closest('.input-group-text').addClass('bg-color-blue-700').addClass('text-white');
                                            autoFill.prop('checked', true).trigger('change');
                                        }
                        public_html/layouts/basic/modules/Calendar/resources/Edit.js on lines 360..363

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

                        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

                                        for (let i in activityDurations) {
                                            if (activityDurations[i].activitytype === activityTypeValue) {
                                                minutes = parseInt(activityDurations[i].duration);
                                                break;
                                            }
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js and 1 other location - About 50 mins to fix
                        public_html/layouts/resources/Calendar.js on lines 830..835

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

                        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

                                                if (reponseDataList.length <= 0) {
                                                    reponseDataList.push({
                                                        label: app.vtranslate('JS_NO_RESULTS_FOUND'),
                                                        type: 'no results',
                                                        category: ''
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js and 1 other location - About 45 mins to fix
                        public_html/layouts/basic/modules/OpenStreetMap/resources/Map.js on lines 289..295

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

                        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

                        There are no issues that match your filters.

                        Category
                        Status