yoichiro/chrome_mysql_admin

View on GitHub
app/scripts/window/controllers/main_footer_controller.js

Summary

Maintainability
C
1 day
Test Coverage

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

    $scope.confirmDeleteSelectedRow = function() {
        if ($scope.isTable() && $scope.isRowSelection()) {
            $scope.showConfirmDialog(
                "Once deleted data will be undone. Would you really like to delete the selected row from MySQL server?",
                "Yes",
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 3 other locations - About 1 hr to fix
app/scripts/window/controllers/main_footer_controller.js on lines 185..195
app/scripts/window/controllers/structure_panel_controller.js on lines 304..314
app/scripts/window/controllers/structure_panel_controller.js on lines 334..344

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

    $scope.confirmDeleteSelectedRelation = function() {
        if ($scope.isTable() && $scope.isRelationSelection()) {
            $scope.showConfirmDialog(
                "Once deleted data will be undone. Would you really like to delete the selected relation from the database?",
                "Yes",
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 3 other locations - About 1 hr to fix
app/scripts/window/controllers/main_footer_controller.js on lines 112..122
app/scripts/window/controllers/structure_panel_controller.js on lines 304..314
app/scripts/window/controllers/structure_panel_controller.js on lines 334..344

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

    $scope.isTable = function() {
        var table = targetObjectService.getTable();
        if (table) {
            return table.type === TableTypes.BASE_TABLE;
        } else {
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 2 other locations - About 1 hr to fix
app/scripts/window/controllers/database_object_list_controller.js on lines 195..202
app/scripts/window/controllers/structure_panel_controller.js on lines 291..298

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

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

    $scope.findSameRows = function() {
        if ($scope.isTable() && $scope.isRowSelection()) {
            anyQueryExecuteService.showFindSameRowsDialog();
        }
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 4 other locations - About 50 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 143..147
app/scripts/window/controllers/main_footer_controller.js on lines 149..153
app/scripts/window/controllers/main_footer_controller.js on lines 247..251
app/scripts/window/controllers/structure_panel_controller.js on lines 316..320

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

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

    $scope.cloneRow = function() {
        if ($scope.isTable() && $scope.isRowSelection()) {
            targetObjectService.requestCloneRow();
        }
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 4 other locations - About 50 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 149..153
app/scripts/window/controllers/main_footer_controller.js on lines 241..245
app/scripts/window/controllers/main_footer_controller.js on lines 247..251
app/scripts/window/controllers/structure_panel_controller.js on lines 316..320

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

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

    $scope.updateRow = function() {
        if ($scope.isTable() && $scope.isRowSelection()) {
            targetObjectService.requestUpdateRow();
        }
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 4 other locations - About 50 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 143..147
app/scripts/window/controllers/main_footer_controller.js on lines 241..245
app/scripts/window/controllers/main_footer_controller.js on lines 247..251
app/scripts/window/controllers/structure_panel_controller.js on lines 316..320

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

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

    $scope.findRowsWithTheValue = function() {
        if ($scope.isTable() && $scope.isRowSelection()) {
            anyQueryExecuteService.showFindRowsWithTheValueDialog();
        }
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 4 other locations - About 50 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 143..147
app/scripts/window/controllers/main_footer_controller.js on lines 149..153
app/scripts/window/controllers/main_footer_controller.js on lines 241..245
app/scripts/window/controllers/structure_panel_controller.js on lines 316..320

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

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

    $scope.isRelationButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.RELATION;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 63..65
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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

    $scope.isInformationButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.INFORMATION;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 63..65
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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

    $scope.isErDiagramButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.ER_DIAGRAM;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 63..65

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

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

    $scope.isQueryButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.QUERY;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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

    $scope.isStructureButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.STRUCTURE;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 63..65
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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

    $scope.isDatabaseButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.DATABASE;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 63..65
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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

    $scope.isRowsButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.ROWS;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 59..61
app/scripts/window/controllers/main_footer_controller.js on lines 63..65
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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

    $scope.isProceduresFunctionsButtonsVisible = function() {
        return mySQLClientService.isConnected() && modeService.getMode() === Modes.PROCS_FUNCS;
    };
Severity: Major
Found in app/scripts/window/controllers/main_footer_controller.js and 7 other locations - About 30 mins to fix
app/scripts/window/controllers/main_footer_controller.js on lines 39..41
app/scripts/window/controllers/main_footer_controller.js on lines 43..45
app/scripts/window/controllers/main_footer_controller.js on lines 47..49
app/scripts/window/controllers/main_footer_controller.js on lines 51..53
app/scripts/window/controllers/main_footer_controller.js on lines 55..57
app/scripts/window/controllers/main_footer_controller.js on lines 63..65
app/scripts/window/controllers/main_footer_controller.js on lines 67..69

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

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