phpmyadmin/phpmyadmin

View on GitHub
resources/js/src/export.ts

Summary

Maintainability
F
1 wk
Test Coverage

File export.ts has 868 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import $ from 'jquery';
import { AJAX } from './modules/ajax.ts';
import { Functions } from './modules/functions.ts';
import { CommonParams } from './modules/common.ts';
import highlightSql from './modules/sql-highlight.ts';
Severity: Major
Found in resources/js/src/export.ts - About 2 days to fix

    Function setupTableStructureOrData has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
    Open

    function setupTableStructureOrData () {
        if ($('input[name=\'export_type\']').val() !== 'database') {
            return;
        }
    
    
    Severity: Minor
    Found in resources/js/src/export.ts - About 2 hrs 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 setupTableStructureOrData has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function setupTableStructureOrData () {
        if ($('input[name=\'export_type\']').val() !== 'database') {
            return;
        }
    
    
    Severity: Minor
    Found in resources/js/src/export.ts - About 1 hr to fix

      Function createAliasModal has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function createAliasModal (event): void {
          event.preventDefault();
          var modal = $('#renameExportModal');
          modal.modal('show');
          modal.on('shown.bs.modal', function () {
      Severity: Minor
      Found in resources/js/src/export.ts - About 1 hr to fix

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

        function loadTemplate (id) {
            var params = {
                'ajax_request': true,
                'server': CommonParams.get('server'),
                'db': CommonParams.get('db'),
        Severity: Minor
        Found in resources/js/src/export.ts - About 1 hr to fix

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

          function toggleQuickOrCustom () {
              const isCustomNoFormOption = ! document.getElementById('quick_or_custom');
              const radioCustomExportElement = document.getElementById('radio_custom_export');
              const isCustomExport = isCustomNoFormOption
                  || radioCustomExportElement instanceof HTMLInputElement
          Severity: Minor
          Found in resources/js/src/export.ts - About 1 hr to fix

            Function getTemplateData has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function getTemplateData () {
                var $form = $('form[name="dump"]');
                var excludeList = [
                    'token',
                    'server',
            Severity: Minor
            Found in resources/js/src/export.ts - About 1 hr to fix

              Function toggleQuickOrCustom has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
              Open

              function toggleQuickOrCustom () {
                  const isCustomNoFormOption = ! document.getElementById('quick_or_custom');
                  const radioCustomExportElement = document.getElementById('radio_custom_export');
                  const isCustomExport = isCustomNoFormOption
                      || radioCustomExportElement instanceof HTMLInputElement
              Severity: Minor
              Found in resources/js/src/export.ts - 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 checkTableSelectAll has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function checkTableSelectAll () {
                  var total = $('input[name="table_select[]"]').length;
                  var strChecked = $('input[name="table_structure[]"]:checked').length;
                  var dataChecked = $('input[name="table_data[]"]:checked').length;
                  var strAll = $('#table_structure_all');
              Severity: Minor
              Found in resources/js/src/export.ts - About 1 hr to fix

                Avoid deeply nested control flow statements.
                Open

                                            if (! localValue.push) {
                                                localValue = [localValue];
                                            }
                Severity: Major
                Found in resources/js/src/export.ts - About 45 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                                          if (($element.is('input') && $element.attr('type') === 'checkbox') ||
                                              ($element.is('input') && $element.attr('type') === 'radio') ||
                                              ($element.is('select') && $element.attr('multiple') === 'multiple')) {
                                              if (! localValue.push) {
                                                  localValue = [localValue];
                  Severity: Major
                  Found in resources/js/src/export.ts - About 40 mins to fix

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

                    function checkTableSelectAll () {
                        var total = $('input[name="table_select[]"]').length;
                        var strChecked = $('input[name="table_structure[]"]:checked').length;
                        var dataChecked = $('input[name="table_data[]"]:checked').length;
                        var strAll = $('#table_structure_all');
                    Severity: Minor
                    Found in resources/js/src/export.ts - 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

                                $.post(url, params, function (response) {
                                    if (response.success === true) {
                                        $.each(response.tables, function (idx, value) {
                                            var option = $('<option></option>');
                                            option.text(value);
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 4 hrs to fix
                    resources/js/src/export.ts on lines 1015..1026

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

                    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

                            $.post(url, params, function (response) {
                                if (response.success === true) {
                                    $.each(response.columns, function (idx, value) {
                                        var option = $('<option></option>');
                                        option.text(value);
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 4 hrs to fix
                    resources/js/src/export.ts on lines 989..1000

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

                    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 (show === 'data') {
                                // disable the SQL comment options
                                if (commentsArePresent) {
                                    $('#checkbox_sql_dates').prop('disabled', true).parent().fadeTo('fast', 0.4);
                                }
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 3 hrs to fix
                    resources/js/src/export.ts on lines 331..339

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

                    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 {
                                // enable the SQL comment options
                                if (commentsArePresent) {
                                    $('#checkbox_sql_dates').prop('disabled', false).parent().fadeTo('fast', 1);
                                }
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 3 hrs to fix
                    resources/js/src/export.ts on lines 323..331

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

                    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 (dataChecked === total) {
                            dataAll
                                .prop('indeterminate', false)
                                .prop('checked', true);
                        } else if (dataChecked === 0) {
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 2 hrs to fix
                    resources/js/src/export.ts on lines 502..514

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

                    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 (strChecked === total) {
                            strAll
                                .prop('indeterminate', false)
                                .prop('checked', true);
                        } else if (strChecked === 0) {
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 2 hrs to fix
                    resources/js/src/export.ts on lines 516..528

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

                    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

                        var params = {
                            'ajax_request': true,
                            'server': CommonParams.get('server'),
                            'db': CommonParams.get('db'),
                            'table': CommonParams.get('table'),
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 2 hrs to fix
                    resources/js/src/export.ts on lines 184..192

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

                    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

                        var params = {
                            'ajax_request': true,
                            'server': CommonParams.get('server'),
                            'db': CommonParams.get('db'),
                            'table': CommonParams.get('table'),
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 2 hrs to fix
                    resources/js/src/export.ts on lines 93..101

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

                    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

                        $('input[name="updateTemplate"]').on('click', function (e) {
                            e.preventDefault();
                            var id = ($('select[name="template"]').val() as string);
                            if (id.length) {
                                Export.updateTemplate(id);
                    Severity: Major
                    Found in resources/js/src/export.ts and 2 other locations - About 2 hrs to fix
                    resources/js/src/export.ts on lines 272..278
                    resources/js/src/export.ts on lines 299..305

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

                    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

                        $('input[name="createTemplate"]').on('click', function (e) {
                            e.preventDefault();
                            var name = ($('input[name="templateName"]').val() as string);
                            if (name.length) {
                                Export.createTemplate(name);
                    Severity: Major
                    Found in resources/js/src/export.ts and 2 other locations - About 2 hrs to fix
                    resources/js/src/export.ts on lines 290..296
                    resources/js/src/export.ts on lines 299..305

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

                    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

                        $('input[name="deleteTemplate"]').on('click', function (e) {
                            e.preventDefault();
                            var id = ($('select[name="template"]').val() as string);
                            if (id.length) {
                                Export.deleteTemplate(id);
                    Severity: Major
                    Found in resources/js/src/export.ts and 2 other locations - About 2 hrs to fix
                    resources/js/src/export.ts on lines 272..278
                    resources/js/src/export.ts on lines 290..296

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

                    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

                        $('input[name="table_structure[]"]').on('change', function () {
                            Export.checkTableSelected($(this).closest('tr'));
                            Export.checkTableSelectAll();
                            Export.handleAddProcCheckbox();
                            Export.checkTableSelectStructureOrData();
                    Severity: Major
                    Found in resources/js/src/export.ts and 2 other locations - About 1 hr to fix
                    resources/js/src/export.ts on lines 653..658
                    resources/js/src/export.ts on lines 667..672

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

                    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

                        $('input[name="table_select[]"]').on('change', function () {
                            Export.toggleTableSelect($(this).closest('tr'));
                            Export.checkTableSelectAll();
                            Export.handleAddProcCheckbox();
                            Export.checkTableSelectStructureOrData();
                    Severity: Major
                    Found in resources/js/src/export.ts and 2 other locations - About 1 hr to fix
                    resources/js/src/export.ts on lines 660..665
                    resources/js/src/export.ts on lines 667..672

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

                    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

                        $('input[name="table_data[]"]').on('change', function () {
                            Export.checkTableSelected($(this).closest('tr'));
                            Export.checkTableSelectAll();
                            Export.handleAddProcCheckbox();
                            Export.checkTableSelectStructureOrData();
                    Severity: Major
                    Found in resources/js/src/export.ts and 2 other locations - About 1 hr to fix
                    resources/js/src/export.ts on lines 653..658
                    resources/js/src/export.ts on lines 660..665

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

                    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

                        var params = {
                            'ajax_request': true,
                            'server': CommonParams.get('server'),
                            'db': CommonParams.get('db'),
                            'table': CommonParams.get('table'),
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 127..134

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

                    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

                        var params = {
                            'ajax_request': true,
                            'server': CommonParams.get('server'),
                            'db': CommonParams.get('db'),
                            'table': CommonParams.get('table'),
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 210..217

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

                    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

                    function toggleTableSelectAllStr () {
                        var strAll = $('#table_structure_all').is(':checked');
                        if (strAll) {
                            $('input[name="table_structure[]"]').prop('checked', true);
                        } else {
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 556..563

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

                    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

                    function toggleTableSelectAllData () {
                        var dataAll = $('#table_data_all').is(':checked');
                        if (dataAll) {
                            $('input[name="table_data[]"]').prop('checked', true);
                        } else {
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 547..554

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

                    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 (db) {
                                var option = $('<option></option>');
                                option.text(db);
                                option.attr('value', db);
                                $('#db_alias_select').append(option).val(db).trigger('change');
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 976..1001

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

                    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 (table) {
                                var option = $('<option></option>');
                                option.text(table);
                                option.attr('value', table);
                                $('#table_alias_select').append(option).val(table).trigger('change');
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 830..852

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

                    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 (structureOrData === 'data' || structureOrData === 'structure_and_data') {
                                if (! $('.export_data input[type="checkbox"]:checked').length) {
                                    $('input[name="table_select[]"]:checked')
                                        .closest('tr')
                                        .find('.export_data input[type="checkbox"]')
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 404..411

                    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

                            if (structureOrData === 'structure' || structureOrData === 'structure_and_data') {
                                if (! $('.export_structure input[type="checkbox"]:checked').length) {
                                    $('input[name="table_select[]"]:checked')
                                        .closest('tr')
                                        .find('.export_structure input[type="checkbox"]')
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 413..420

                    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

                    function disableDumpSomeRowsSubOptions () {
                        $('label[for=\'limit_to\']').fadeTo('fast', 0.4);
                        $('label[for=\'limit_from\']').fadeTo('fast', 0.4);
                        $('input[type=\'text\'][name=\'limit_to\']').prop('disabled', 'disabled');
                        $('input[type=\'text\'][name=\'limit_from\']').prop('disabled', 'disabled');
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 26..31

                    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

                    function enableDumpSomeRowsSubOptions () {
                        $('label[for=\'limit_to\']').fadeTo('fast', 1);
                        $('label[for=\'limit_from\']').fadeTo('fast', 1);
                        $('input[type=\'text\'][name=\'limit_to\']').prop('disabled', '');
                        $('input[type=\'text\'][name=\'limit_from\']').prop('disabled', '');
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 16..21

                    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 {
                            $ulSaveAsfile.find('> li').fadeTo('fast', 1);
                            $ulSaveAsfile.find('> li > input').prop('disabled', false);
                            $ulSaveAsfile.find('> li > select').prop('disabled', false);
                        }
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 458..462

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

                    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 (! $('#radio_dump_asfile').prop('checked')) {
                            $ulSaveAsfile.find('> li').fadeTo('fast', 0.4);
                            $ulSaveAsfile.find('> li > input').prop('disabled', true);
                            $ulSaveAsfile.find('> li > select').prop('disabled', true);
                        } else {
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 462..466

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

                    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

                        $('#table_structure_all').on('change', function () {
                            Export.toggleTableSelectAllStr();
                            Export.checkSelectedTables();
                            Export.handleAddProcCheckbox();
                            Export.checkTableSelectStructureOrData();
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 681..686

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

                    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

                        $('#table_data_all').on('change', function () {
                            Export.toggleTableSelectAllData();
                            Export.checkSelectedTables();
                            Export.handleAddProcCheckbox();
                            Export.checkTableSelectStructureOrData();
                    Severity: Major
                    Found in resources/js/src/export.ts and 1 other location - About 1 hr to fix
                    resources/js/src/export.ts on lines 674..679

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

                    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 {
                            $(dataDiv).slideDown('slow');
                            autoIncrement.prop('disabled', false).parent().fadeTo('fast', 1);
                        }
                    Severity: Minor
                    Found in resources/js/src/export.ts and 1 other location - About 35 mins to fix
                    resources/js/src/export.ts on lines 538..541

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

                    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 (dataChecked === 0) {
                            $(dataDiv).slideUp('slow');
                            autoIncrement.prop('disabled', true).parent().fadeTo('fast', 0.4);
                        } else {
                    Severity: Minor
                    Found in resources/js/src/export.ts and 1 other location - About 35 mins to fix
                    resources/js/src/export.ts on lines 541..544

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

                    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