superdesk/superdesk-client-core

View on GitHub

Showing 3,654 of 3,654 total issues

Function SearchPanel has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

export function SearchPanel($location,
    desks,
    privileges,
    asset,
    metadata,
Severity: Major
Found in scripts/apps/search/directives/SearchPanel.ts - About 50 mins to fix

    Function ItemGlobalSearch has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        session, api, notify, keyboardManager, asset, authoringWorkspace: AuthoringWorkspaceService, authoring,
    Severity: Major
    Found in scripts/apps/search/directives/ItemGlobalSearch.ts - About 50 mins to fix

      Function showPreview has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                      function showPreview(e, rx, ry, boundX, boundY, cordx, cordy) {
      Severity: Major
      Found in scripts/core/upload/crop-directive.ts - About 50 mins to fix

        Function SpellcheckService has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function SpellcheckService($q, api, dictionaries, $rootScope, $location, _, preferencesService) {
        Severity: Major
        Found in scripts/core/spellcheck/spellcheck.ts - About 50 mins to fix

          Function UserNotificationsService has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              $rootScope,
              $timeout,
              api,
              session,
              SESSION_EVENTS,
          Severity: Major
          Found in scripts/core/menu/notifications/notifications.ts - About 50 mins to fix

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

            const nameField: IFormField = {
                label: gettext('Title'),
                type: FormFieldType.plainText,
                field: nameof<IPredefinedFieldOption>('title'),
                required: true,
            Severity: Major
            Found in scripts/extensions/predefinedTextField/src/config.tsx and 5 other locations - About 50 mins to fix
            scripts/apps/workspace/content/components/get-content-profiles-form-config.tsx on lines 296..301
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 24..29
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 30..35
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 45..50
            scripts/extensions/predefinedTextField/src/config.tsx on lines 29..34

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                        event.originalEvent = {dataTransfer: {
                            types: ['application/superdesk.item.picture'],
                            getData: () => angular.toJson({headline: 'foo', _type: 'externalsource'}),
                        }};
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 72..75
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 96..99
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 156..159

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

            const shortCode: IFormField = {
                label: gettext('Show code'),
                type: FormFieldType.plainText,
                field: nameof<IShow>('shortcode'),
                required: false,
            Severity: Major
            Found in scripts/extensions/broadcasting/src/shows/manage-shows.tsx and 5 other locations - About 50 mins to fix
            scripts/apps/workspace/content/components/get-content-profiles-form-config.tsx on lines 296..301
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 24..29
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 45..50
            scripts/extensions/predefinedTextField/src/config.tsx on lines 22..27
            scripts/extensions/predefinedTextField/src/config.tsx on lines 29..34

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                const showToggle: IFormField = {
                    label: gettext('Allow field to be toggled'),
                    type: FormFieldType.checkbox,
                    field: nameof<ICommonFieldConfig>('allow_toggling'),
                    required: false,
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 24..29
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 30..35
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 45..50
            scripts/extensions/predefinedTextField/src/config.tsx on lines 22..27
            scripts/extensions/predefinedTextField/src/config.tsx on lines 29..34

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

            const plannedDurationField: IFormField = {
                label: gettext('Planned duration'),
                type: FormFieldType.duration,
                field: nameof<IShow>('planned_duration'),
                required: true,
            Severity: Major
            Found in scripts/extensions/broadcasting/src/shows/manage-shows.tsx and 5 other locations - About 50 mins to fix
            scripts/apps/workspace/content/components/get-content-profiles-form-config.tsx on lines 296..301
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 24..29
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 30..35
            scripts/extensions/predefinedTextField/src/config.tsx on lines 22..27
            scripts/extensions/predefinedTextField/src/config.tsx on lines 29..34

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

            const definitionField: IFormField = {
                label: gettext('Definition'),
                type: FormFieldType.textEditor3,
                field: nameof<IPredefinedFieldOption>('definition'),
                required: true,
            Severity: Major
            Found in scripts/extensions/predefinedTextField/src/config.tsx and 5 other locations - About 50 mins to fix
            scripts/apps/workspace/content/components/get-content-profiles-form-config.tsx on lines 296..301
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 24..29
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 30..35
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 45..50
            scripts/extensions/predefinedTextField/src/config.tsx on lines 22..27

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

            function convertUsersArrayToObject(users) {
                const usersObj = {};
            
                users.forEach((user) => {
                    usersObj[user._id] = user;
            Severity: Minor
            Found in scripts/apps/authoring/track-changes/inline-comments.ts and 1 other location - About 50 mins to fix
            scripts/apps/authoring/track-changes/suggestions.ts on lines 27..35

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                    event.originalEvent = {dataTransfer: {
                        types: ['application/superdesk.item.video'],
                        getData: () => angular.toJson({headline: 'foo', _type: 'externalsource'}),
                    }};
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 72..75
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 131..134
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 156..159

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                    event.originalEvent = {dataTransfer: {
                        types: ['application/superdesk.item.picture'],
                        getData: () => angular.toJson({_id: 'foo', _type: 'archive'}),
                    }};
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 72..75
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 96..99
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 131..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 52.

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

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

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

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

            Refactorings

            Further Reading

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

            const nameField: IFormField = {
                label: gettext('Show name'),
                type: FormFieldType.plainText,
                field: nameof<IShow>('title'),
                required: true,
            Severity: Major
            Found in scripts/extensions/broadcasting/src/shows/manage-shows.tsx and 5 other locations - About 50 mins to fix
            scripts/apps/workspace/content/components/get-content-profiles-form-config.tsx on lines 296..301
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 30..35
            scripts/extensions/broadcasting/src/shows/manage-shows.tsx on lines 45..50
            scripts/extensions/predefinedTextField/src/config.tsx on lines 22..27
            scripts/extensions/predefinedTextField/src/config.tsx on lines 29..34

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

            function convertUsersArrayToObject(users) {
                const usersObj = {};
            
                users.forEach((user) => {
                    usersObj[user._id] = user;
            Severity: Minor
            Found in scripts/apps/authoring/track-changes/suggestions.ts and 1 other location - About 50 mins to fix
            scripts/apps/authoring/track-changes/inline-comments.ts on lines 38..46

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                    event.originalEvent = {dataTransfer: {
                        types: ['application/superdesk.item.video'],
                        getData: () => angular.toJson({headline: 'foo', _type: 'externalsource'}),
                    }};
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 96..99
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 131..134
            scripts/apps/authoring/authoring/directives/ItemAssociationDirective.spec.ts on lines 156..159

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                beforeEach(() => {
                    const testConfig: Partial<ISuperdeskGlobalConfig> = {server: {url: SERVER_URL, ws: undefined}};
            
                    Object.assign(appConfig, testConfig);
                });
            Severity: Minor
            Found in scripts/core/api/url-resolver.spec.ts and 1 other location - About 50 mins to fix
            scripts/core/api/api-service.spec.ts on lines 41..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 52.

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

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

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

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

            Refactorings

            Further Reading

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

                                            <TagListComponent
                                                savedTags={savedTags}
                                                tags={tags.toMap()}
                                                readOnly={true}
                                                inline={true}
            scripts/extensions/auto-tagging-widget/src/header-auto-tagging.tsx on lines 38..44

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

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

                                        <TagListComponent
                                            savedTags={savedTags}
                                            tags={tags.toMap()}
                                            readOnly={true}
                                            inline={true}
            scripts/extensions/auto-tagging-widget/src/header-auto-tagging.tsx on lines 61..67

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 52.

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

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

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

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

            Refactorings

            Further Reading

            Severity
            Category
            Status
            Source
            Language