whitef0x0/tellform

View on GitHub

Showing 608 of 608 total issues

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

angular.module('forms').config(['$translateProvider', function ($translateProvider) {

      $translateProvider.translations('it', {
        // Configura la visualizzazione scheda modulo
        ADVANCED_SETTINGS: 'Impostazioni avanzate',
Severity: Major
Found in public/modules/forms/admin/config/i18n/italian.js and 2 other locations - About 5 days to fix
public/modules/forms/admin/config/i18n/english.js on lines 3..190
public/modules/forms/admin/config/i18n/french.js on lines 3..189

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

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

angular.module('forms').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('en', {

        //Configure Form Tab View
Severity: Major
Found in public/modules/forms/admin/config/i18n/english.js and 2 other locations - About 5 days to fix
public/modules/forms/admin/config/i18n/french.js on lines 3..189
public/modules/forms/admin/config/i18n/italian.js on lines 3..190

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

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

angular.module('forms').config(['$translateProvider', function ($translateProvider) {

      $translateProvider.translations('fr', {
        // Configurer la vue de l'onglet Formulaire
        ADVANCED_SETTINGS: 'Paramètres avancés',
Severity: Major
Found in public/modules/forms/admin/config/i18n/french.js and 2 other locations - About 5 days to fix
public/modules/forms/admin/config/i18n/english.js on lines 3..190
public/modules/forms/admin/config/i18n/italian.js on lines 3..190

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

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

angular.module('forms').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('de', {
        // Konfigurieren der Formularregisterkarte
        ADVANCED_SETTINGS: 'Erweiterte Einstellungen',
Severity: Major
Found in public/modules/forms/admin/config/i18n/german.js and 1 other location - About 5 days to fix
public/modules/forms/admin/config/i18n/swedish.js on lines 3..189

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

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

angular.module('forms').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('sv', {
        // Konfigurera Formulär Tab Vy
        ADVANCED_SETTINGS: 'Avancerade Inställningar',
Severity: Major
Found in public/modules/forms/admin/config/i18n/swedish.js and 1 other location - About 5 days to fix
public/modules/forms/admin/config/i18n/german.js on lines 3..189

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

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

                $scope.openEditStartPageModal = function(){
                    $scope.editStartPageModal = $uibModal.open({
                        animation: true,
                        templateUrl: 'editStartPageModal.html',
                        windowClass: 'edit-modal-window',
public/modules/forms/admin/directives/edit-form.client.directive.js on lines 209..259

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

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

                $scope.openEditEndPageModal = function(){
                    $scope.editEndPageModal = $uibModal.open({
                        animation: true,
                        templateUrl: 'editEndPageModal.html',
                        windowClass: 'edit-modal-window',
public/modules/forms/admin/directives/edit-form.client.directive.js on lines 154..204

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

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

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

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

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

Refactorings

Further Reading

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

        beforeEach(module(function($provide) {
            $provide.service('User', function($q) {
                return {
                    getCurrent: function() {
                        var deferred = $q.defer();
public/modules/forms/tests/unit/controllers/admin-form.client.controller.test.js on lines 93..128

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

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

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

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

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

Refactorings

Further Reading

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

        beforeEach(module(function($provide) {
            $provide.service('User', function($q) {
                return {
                    getCurrent: function() {
                        var deferred = $q.defer();
public/modules/forms/tests/unit/controllers/submit-form.client.controller.test.js on lines 81..116

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

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

angular.module('users').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('sv', {
        ACCESS_DENIED_TEXT: 'Du behöver vara inloggad för att kunna besöka denna sida',
        USERNAME_OR_EMAIL_LABEL: 'Användarnamn eller E-post',
Severity: Major
Found in public/modules/users/config/i18n/swedish.js and 3 other locations - About 1 day to fix
public/modules/users/config/i18n/german.js on lines 3..70
public/modules/users/config/i18n/italian.js on lines 3..70
public/modules/users/config/i18n/spanish.js on lines 3..70

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

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

angular.module('users').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('it', {
        ACCESS_DENIED_TEXT: 'Devi aver effettuato l\'accesso per accedere a questa pagina',
        USERNAME_OR_EMAIL_LABEL: 'Nome utente o posta elettronica',
Severity: Major
Found in public/modules/users/config/i18n/italian.js and 3 other locations - About 1 day to fix
public/modules/users/config/i18n/german.js on lines 3..70
public/modules/users/config/i18n/spanish.js on lines 3..70
public/modules/users/config/i18n/swedish.js on lines 3..71

Duplicated Code

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

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

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

Tuning

This issue has a mass of 306.

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

angular.module('users').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('de', {
        ACCESS_DENIED_TEXT: 'Sie müssen eingeloggt sein, um auf diese Seite zugreifen zu können',
        USERNAME_OR_EMAIL_LABEL: 'Benutzername oder E-Mail',
Severity: Major
Found in public/modules/users/config/i18n/german.js and 3 other locations - About 1 day to fix
public/modules/users/config/i18n/italian.js on lines 3..70
public/modules/users/config/i18n/spanish.js on lines 3..70
public/modules/users/config/i18n/swedish.js on lines 3..71

Duplicated Code

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

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

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

Tuning

This issue has a mass of 306.

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

angular.module('users').config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('es', {
        ACCESS_DENIED_TEXT: 'Tenés que estar logueado para acceder a esta página',
        USERNAME_OR_EMAIL_LABEL: 'Usuario o Email',
Severity: Major
Found in public/modules/users/config/i18n/spanish.js and 3 other locations - About 1 day to fix
public/modules/users/config/i18n/german.js on lines 3..70
public/modules/users/config/i18n/italian.js on lines 3..70
public/modules/users/config/i18n/swedish.js on lines 3..71

Duplicated Code

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

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

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

Tuning

This issue has a mass of 306.

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

Function controller has 310 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            controller: function($document, $window, $scope){
                var NOSCROLL = false;
                var FORM_ACTION_ID = 'submit_field';
                $scope.forms = {};
                

    Function exports has 295 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(grunt) {
        require('jit-grunt')(grunt);
    
        // Unified Watch Object
        var watchFiles = {
    Severity: Major
    Found in gruntfile.js - About 1 day to fix

      Function controller has 250 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  controller: function($scope){
      
                      /*
                      **  Initialize scope with variables
                      */
      Severity: Major
      Found in public/modules/forms/admin/directives/edit-form.client.directive.js - About 1 day to fix

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

        .filter('formValidity', function(){
            return function(formObj){
                if(formObj && formObj.form_fields && formObj.visible_form_fields){
        
                    //get keys
        Severity: Major
        Found in public/form_modules/forms/base/config/forms.client.config.js and 1 other location - About 1 day to fix
        public/modules/forms/config/forms.client.config.js on lines 13..39

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

        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

        }]).filter('formValidity', [function(){
                return function(formObj){
                    if(formObj && formObj.form_fields && formObj.visible_form_fields){
        
                        //get keys
        Severity: Major
        Found in public/modules/forms/config/forms.client.config.js and 1 other location - About 1 day to fix
        public/form_modules/forms/base/config/forms.client.config.js on lines 5..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 224.

        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

        angular.module('view-form').config(['$translateProvider', function ($translateProvider) {
        
              $translateProvider.translations('es', {
                FORM_SUCCESS: '¡El formulario ha sido enviado con éxito!',
                REVIEW: 'Revisar',
        Severity: Major
        Found in public/form_modules/forms/base/config/i18n/spanish.js and 4 other locations - About 1 day to fix
        public/form_modules/forms/base/config/i18n/french.js on lines 3..45
        public/form_modules/forms/base/config/i18n/german.js on lines 3..45
        public/form_modules/forms/base/config/i18n/italian.js on lines 3..45
        public/form_modules/forms/base/config/i18n/swedish.js on lines 3..45

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

        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

        angular.module('view-form').config(['$translateProvider', function ($translateProvider) {
        
          $translateProvider.translations('se', {
            FORM_SUCCESS: 'Formulärsvaret skickades framgångsrikt in!',
            REVIEW: 'Granska',
        Severity: Major
        Found in public/form_modules/forms/base/config/i18n/swedish.js and 4 other locations - About 1 day to fix
        public/form_modules/forms/base/config/i18n/french.js on lines 3..45
        public/form_modules/forms/base/config/i18n/german.js on lines 3..45
        public/form_modules/forms/base/config/i18n/italian.js on lines 3..45
        public/form_modules/forms/base/config/i18n/spanish.js on lines 3..45

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

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

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

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

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

        Refactorings

        Further Reading

        Severity
        Category
        Status
        Source
        Language