RocketChat/Rocket.Chat

View on GitHub
packages/rest-typings/src/v1/chat.ts

Summary

Maintainability
F
1 wk
Test Coverage

File chat.ts has 874 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import type { IMessage, IRoom, MessageAttachment, ReadReceipt, OtrSystemMessages, MessageUrl } from '@rocket.chat/core-typings';
import Ajv from 'ajv';

import type { PaginatedRequest } from '../helpers/PaginatedRequest';

Severity: Major
Found in packages/rest-typings/src/v1/chat.ts - About 2 days to fix

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

            {
                type: 'object',
                properties: {
                    roomId: {
                        oneOf: [
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 1 other location - About 5 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 746..786

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

    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

            {
                type: 'object',
                properties: {
                    channel: {
                        oneOf: [
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 1 other location - About 5 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 705..745

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

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

    const ChatGetThreadsListSchema = {
        type: 'object',
        properties: {
            rid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 9 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts on lines 9..35
    packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts on lines 11..37
    packages/rest-typings/src/v1/omnichannel.ts on lines 319..344
    packages/rest-typings/src/v1/omnichannel.ts on lines 443..468
    packages/rest-typings/src/v1/omnichannel.ts on lines 694..719
    packages/rest-typings/src/v1/omnichannel.ts on lines 725..750
    packages/rest-typings/src/v1/omnichannel.ts on lines 810..835
    packages/rest-typings/src/v1/roles.ts on lines 67..92
    packages/rest-typings/src/v1/rooms.ts on lines 30..55

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

    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

    const ChatGetDeletedMessagesSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 2 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 609..633
    packages/rest-typings/src/v1/omnichannel.ts on lines 1936..1960

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

    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

    const ChatSyncThreadMessagesSchema = {
        type: 'object',
        properties: {
            tmid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 2 other locations - About 3 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 671..695
    packages/rest-typings/src/v1/omnichannel.ts on lines 1936..1960

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

    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 ChatGetThreadMessagesSchema = {
        type: 'object',
        properties: {
            tmid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 5 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 206..227
    packages/rest-typings/src/v1/chat.ts on lines 494..515
    packages/rest-typings/src/v1/chat.ts on lines 526..547
    packages/rest-typings/src/v1/chat.ts on lines 558..579
    packages/rest-typings/src/v1/roles.ts on lines 33..54

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 90.

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

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

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

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

    Refactorings

    Further Reading

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

    const GetStarredMessagesSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 5 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 206..227
    packages/rest-typings/src/v1/chat.ts on lines 526..547
    packages/rest-typings/src/v1/chat.ts on lines 558..579
    packages/rest-typings/src/v1/chat.ts on lines 641..662
    packages/rest-typings/src/v1/roles.ts on lines 33..54

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 90.

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

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

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

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

    Refactorings

    Further Reading

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

    const GetPinnedMessagesSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 5 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 206..227
    packages/rest-typings/src/v1/chat.ts on lines 494..515
    packages/rest-typings/src/v1/chat.ts on lines 558..579
    packages/rest-typings/src/v1/chat.ts on lines 641..662
    packages/rest-typings/src/v1/roles.ts on lines 33..54

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 90.

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

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

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

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

    Refactorings

    Further Reading

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

    const ChatGetDiscussionsSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 5 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 494..515
    packages/rest-typings/src/v1/chat.ts on lines 526..547
    packages/rest-typings/src/v1/chat.ts on lines 558..579
    packages/rest-typings/src/v1/chat.ts on lines 641..662
    packages/rest-typings/src/v1/roles.ts on lines 33..54

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 90.

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

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

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

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

    Refactorings

    Further Reading

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

    const GetMentionedMessagesSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 5 other locations - About 2 hrs to fix
    packages/rest-typings/src/v1/chat.ts on lines 206..227
    packages/rest-typings/src/v1/chat.ts on lines 494..515
    packages/rest-typings/src/v1/chat.ts on lines 526..547
    packages/rest-typings/src/v1/chat.ts on lines 641..662
    packages/rest-typings/src/v1/roles.ts on lines 33..54

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 90.

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

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

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

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

    Refactorings

    Further Reading

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

    const ChatSearchSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 1 other location - About 2 hrs to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 1359..1379

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 86.

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

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

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

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

    Refactorings

    Further Reading

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

    const ChatDeleteSchema = {
        type: 'object',
        properties: {
            msgId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 10 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/omnichannel.ts on lines 125..141
    packages/rest-typings/src/v1/omnichannel.ts on lines 1330..1346
    packages/rest-typings/src/v1/omnichannel.ts on lines 1391..1407
    packages/rest-typings/src/v1/omnichannel.ts on lines 1419..1435
    packages/rest-typings/src/v1/omnichannel.ts on lines 1446..1462
    packages/rest-typings/src/v1/omnichannel.ts on lines 1474..1490
    packages/rest-typings/src/v1/omnichannel.ts on lines 1502..1518
    packages/rest-typings/src/v1/omnichannel.ts on lines 1530..1546
    packages/rest-typings/src/v1/omnichannel.ts on lines 1558..1574
    packages/rest-typings/src/v1/users/UserSetActiveStatusParamsPOST.ts on lines 13..22

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 70.

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

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

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

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

    Refactorings

    Further Reading

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

    const ChatIgnoreUserSchema = {
        type: 'object',
        properties: {
            rid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 6 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/e2e.ts on lines 50..65
    packages/rest-typings/src/v1/oauthapps/OAuthAppsAddParamsPOST.ts on lines 9..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 1732..1747
    packages/rest-typings/src/v1/omnichannel.ts on lines 1912..1927
    packages/rest-typings/src/v1/omnichannel.ts on lines 2180..2195
    packages/rest-typings/src/v1/omnichannel.ts on lines 2247..2262

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

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

        '/v1/chat.getDeletedMessages': {
            GET: (params: ChatGetDeletedMessages) => {
                messages: IMessage[];
                count: number;
                offset: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 6 other locations - About 1 hr to fix
    apps/meteor/ee/app/livechat-enterprise/server/api/business-hours.ts on lines 11..18
    packages/rest-typings/src/v1/chat.ts on lines 893..900
    packages/rest-typings/src/v1/chat.ts on lines 901..908
    packages/rest-typings/src/v1/chat.ts on lines 909..916
    packages/rest-typings/src/v1/chat.ts on lines 940..947
    packages/rest-typings/src/v1/statistics.ts on lines 81..88

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

        '/v1/chat.getThreadMessages': {
            GET: (params: ChatGetThreadMessages) => {
                messages: IMessage[];
                count: number;
                offset: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 6 other locations - About 1 hr to fix
    apps/meteor/ee/app/livechat-enterprise/server/api/business-hours.ts on lines 11..18
    packages/rest-typings/src/v1/chat.ts on lines 893..900
    packages/rest-typings/src/v1/chat.ts on lines 901..908
    packages/rest-typings/src/v1/chat.ts on lines 909..916
    packages/rest-typings/src/v1/chat.ts on lines 948..955
    packages/rest-typings/src/v1/statistics.ts on lines 81..88

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

        '/v1/chat.getPinnedMessages': {
            GET: (params: GetPinnedMessages) => {
                messages: IMessage[];
                count: number;
                offset: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 6 other locations - About 1 hr to fix
    apps/meteor/ee/app/livechat-enterprise/server/api/business-hours.ts on lines 11..18
    packages/rest-typings/src/v1/chat.ts on lines 893..900
    packages/rest-typings/src/v1/chat.ts on lines 909..916
    packages/rest-typings/src/v1/chat.ts on lines 940..947
    packages/rest-typings/src/v1/chat.ts on lines 948..955
    packages/rest-typings/src/v1/statistics.ts on lines 81..88

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

        '/v1/chat.getMentionedMessages': {
            GET: (params: GetMentionedMessages) => {
                messages: IMessage[];
                count: number;
                offset: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 6 other locations - About 1 hr to fix
    apps/meteor/ee/app/livechat-enterprise/server/api/business-hours.ts on lines 11..18
    packages/rest-typings/src/v1/chat.ts on lines 893..900
    packages/rest-typings/src/v1/chat.ts on lines 901..908
    packages/rest-typings/src/v1/chat.ts on lines 940..947
    packages/rest-typings/src/v1/chat.ts on lines 948..955
    packages/rest-typings/src/v1/statistics.ts on lines 81..88

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

        '/v1/chat.getStarredMessages': {
            GET: (params: GetStarredMessages) => {
                messages: IMessage[];
                count: number;
                offset: number;
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 6 other locations - About 1 hr to fix
    apps/meteor/ee/app/livechat-enterprise/server/api/business-hours.ts on lines 11..18
    packages/rest-typings/src/v1/chat.ts on lines 901..908
    packages/rest-typings/src/v1/chat.ts on lines 909..916
    packages/rest-typings/src/v1/chat.ts on lines 940..947
    packages/rest-typings/src/v1/chat.ts on lines 948..955
    packages/rest-typings/src/v1/statistics.ts on lines 81..88

    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

        '/v1/chat.syncMessages': {
            GET: (params: ChatSyncMessages) => {
                result: {
                    updated: IMessage[];
                    deleted: IMessage[];
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 859..866
    packages/rest-typings/src/v1/chat.ts on lines 932..939
    packages/rest-typings/src/v1/emojiCustom.ts on lines 56..63

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 58.

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

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

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

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

    Refactorings

    Further Reading

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

        '/v1/chat.syncThreadsList': {
            GET: (params: ChatSyncThreadsList) => {
                threads: {
                    update: IMessage[];
                    remove: IMessage[];
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 917..924
    packages/rest-typings/src/v1/chat.ts on lines 932..939
    packages/rest-typings/src/v1/emojiCustom.ts on lines 56..63

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 58.

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

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

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

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

    Refactorings

    Further Reading

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

        '/v1/chat.syncThreadMessages': {
            GET: (params: ChatSyncThreadMessages) => {
                messages: {
                    update: IMessage[];
                    remove: IMessage[];
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 3 other locations - About 1 hr to fix
    packages/rest-typings/src/v1/chat.ts on lines 859..866
    packages/rest-typings/src/v1/chat.ts on lines 917..924
    packages/rest-typings/src/v1/emojiCustom.ts on lines 56..63

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 58.

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

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

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

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

    Refactorings

    Further Reading

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

    const ChatGetURLPreviewSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 236..248
    packages/rest-typings/src/v1/chat.ts on lines 292..304
    packages/rest-typings/src/v1/chat.ts on lines 588..600
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 13..25
    packages/rest-typings/src/v1/e2e.ts on lines 74..86
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 278..290
    packages/rest-typings/src/v1/omnichannel.ts on lines 1236..1248
    packages/rest-typings/src/v1/omnichannel.ts on lines 1306..1318
    packages/rest-typings/src/v1/omnichannel.ts on lines 1710..1722
    packages/rest-typings/src/v1/omnichannel.ts on lines 1890..1902
    packages/rest-typings/src/v1/omnichannel.ts on lines 2091..2103
    packages/rest-typings/src/v1/omnichannel.ts on lines 3022..3034

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

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

    const ChatSyncMessagesSchema = {
        type: 'object',
        properties: {
            roomId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 236..248
    packages/rest-typings/src/v1/chat.ts on lines 292..304
    packages/rest-typings/src/v1/chat.ts on lines 797..809
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 13..25
    packages/rest-typings/src/v1/e2e.ts on lines 74..86
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 278..290
    packages/rest-typings/src/v1/omnichannel.ts on lines 1236..1248
    packages/rest-typings/src/v1/omnichannel.ts on lines 1306..1318
    packages/rest-typings/src/v1/omnichannel.ts on lines 1710..1722
    packages/rest-typings/src/v1/omnichannel.ts on lines 1890..1902
    packages/rest-typings/src/v1/omnichannel.ts on lines 2091..2103
    packages/rest-typings/src/v1/omnichannel.ts on lines 3022..3034

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

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

    const ChatSyncThreadsListSchema = {
        type: 'object',
        properties: {
            rid: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 236..248
    packages/rest-typings/src/v1/chat.ts on lines 588..600
    packages/rest-typings/src/v1/chat.ts on lines 797..809
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 13..25
    packages/rest-typings/src/v1/e2e.ts on lines 74..86
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 278..290
    packages/rest-typings/src/v1/omnichannel.ts on lines 1236..1248
    packages/rest-typings/src/v1/omnichannel.ts on lines 1306..1318
    packages/rest-typings/src/v1/omnichannel.ts on lines 1710..1722
    packages/rest-typings/src/v1/omnichannel.ts on lines 1890..1902
    packages/rest-typings/src/v1/omnichannel.ts on lines 2091..2103
    packages/rest-typings/src/v1/omnichannel.ts on lines 3022..3034

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

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

    const ChatReportMessageSchema = {
        type: 'object',
        properties: {
            messageId: {
                type: 'string',
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 14 other locations - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 292..304
    packages/rest-typings/src/v1/chat.ts on lines 588..600
    packages/rest-typings/src/v1/chat.ts on lines 797..809
    packages/rest-typings/src/v1/cloud.ts on lines 30..42
    packages/rest-typings/src/v1/e2e.ts on lines 13..25
    packages/rest-typings/src/v1/e2e.ts on lines 74..86
    packages/rest-typings/src/v1/mailer/MailerUnsubscribeParamsPOST.ts on lines 12..24
    packages/rest-typings/src/v1/omnichannel.ts on lines 278..290
    packages/rest-typings/src/v1/omnichannel.ts on lines 1236..1248
    packages/rest-typings/src/v1/omnichannel.ts on lines 1306..1318
    packages/rest-typings/src/v1/omnichannel.ts on lines 1710..1722
    packages/rest-typings/src/v1/omnichannel.ts on lines 1890..1902
    packages/rest-typings/src/v1/omnichannel.ts on lines 2091..2103
    packages/rest-typings/src/v1/omnichannel.ts on lines 3022..3034

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

    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

        | { roomId: string | string[]; text?: string; alias?: string; emoji?: string; avatar?: string; attachments?: MessageAttachment[] }
    Severity: Minor
    Found in packages/rest-typings/src/v1/chat.ts and 1 other location - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 701..701

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

    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

        | { channel: string | string[]; text?: string; alias?: string; emoji?: string; avatar?: string; attachments?: MessageAttachment[] };
    Severity: Minor
    Found in packages/rest-typings/src/v1/chat.ts and 1 other location - About 55 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 700..700

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

    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

        '/v1/chat.getDiscussions': {
            GET: (params: ChatGetDiscussions) => {
                messages: IMessage[];
                total: number;
            };
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 3 other locations - About 35 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 853..858
    packages/rest-typings/src/v1/roles.ts on lines 159..164
    packages/rest-typings/src/v1/rooms.ts on lines 445..450

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 46.

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

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

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

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

    Refactorings

    Further Reading

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

        '/v1/chat.getThreadsList': {
            GET: (params: ChatGetThreadsList) => {
                threads: IMessage[];
                total: number;
            };
    Severity: Major
    Found in packages/rest-typings/src/v1/chat.ts and 3 other locations - About 35 mins to fix
    packages/rest-typings/src/v1/chat.ts on lines 847..852
    packages/rest-typings/src/v1/roles.ts on lines 159..164
    packages/rest-typings/src/v1/rooms.ts on lines 445..450

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 46.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status