ui/src/modules/robot/constants.ts

Summary

Maintainability
F
6 days
Test Coverage

File constants.ts has 600 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export const TOOLTIP = 'Your responsive will determine your onboarindg guides';

export const PLACEHOLDER = 'Choose one';

export const ROLE_VALUE = [
Severity: Major
Found in ui/src/modules/robot/constants.ts - About 1 day to fix

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

      customizeKnowledgeBase: {
        text: 'Khowledge Base',
        description:
          'Educate both your customers and staff by creating a help center related to your brands, products and services to reach higher level of satisfactions',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 2 other locations - About 3 hrs to fix
    ui/src/modules/robot/constants.ts on lines 309..333
    ui/src/modules/robot/constants.ts on lines 434..461

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

    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

      importExistingContacts: {
        text: 'Import',
        description:
          'You will be able to import large files and export data from our system',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 2 other locations - About 3 hrs to fix
    ui/src/modules/robot/constants.ts on lines 434..461
    ui/src/modules/robot/constants.ts on lines 517..541

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 96.

    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

      customizeGrowthHacking: {
        text: 'Growth hacking stage',
        description:
          'Evaluate the percentage of success on every idea by dividing them into categories',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 2 other locations - About 3 hrs to fix
    ui/src/modules/robot/constants.ts on lines 309..333
    ui/src/modules/robot/constants.ts on lines 517..541

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 96.

    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

      generalSettings: {
        text: 'Set your general settings',
        description:
          'Setting your general configuration adjusts the basic fundamental features on our platform',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 334..354
    ui/src/modules/robot/constants.ts on lines 355..375
    ui/src/modules/robot/constants.ts on lines 392..412
    ui/src/modules/robot/constants.ts on lines 413..433
    ui/src/modules/robot/constants.ts on lines 496..516
    ui/src/modules/robot/constants.ts on lines 572..594

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

    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

      inviteTeamMembers: {
        text: 'Team members/ Permission',
        description:
          'Invite your team members into your organization to manage all internal and external activities in one location',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 235..255
    ui/src/modules/robot/constants.ts on lines 355..375
    ui/src/modules/robot/constants.ts on lines 392..412
    ui/src/modules/robot/constants.ts on lines 413..433
    ui/src/modules/robot/constants.ts on lines 496..516
    ui/src/modules/robot/constants.ts on lines 572..594

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

    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

      customizeTasks: {
        text: 'Task stage',
        description:
          "Customizing your ticket stages will help you manage and keep track of the organization's internal operations and activities",
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 235..255
    ui/src/modules/robot/constants.ts on lines 334..354
    ui/src/modules/robot/constants.ts on lines 355..375
    ui/src/modules/robot/constants.ts on lines 392..412
    ui/src/modules/robot/constants.ts on lines 496..516
    ui/src/modules/robot/constants.ts on lines 572..594

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

    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

      prepareContentTemplates: {
        text: 'Content template',
        description:
          'You can save a lot of time by preparing email/response templates, all you need to do is automate your entire operation with prepared scripts',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 235..255
    ui/src/modules/robot/constants.ts on lines 334..354
    ui/src/modules/robot/constants.ts on lines 355..375
    ui/src/modules/robot/constants.ts on lines 392..412
    ui/src/modules/robot/constants.ts on lines 413..433
    ui/src/modules/robot/constants.ts on lines 496..516

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

    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

      customizeTickets: {
        text: 'Ticket stage',
        description:
          "Customizing your ticket stages will help your team members with the process of receiving, maintaining, and resolving complaints from the organization's customers",
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 235..255
    ui/src/modules/robot/constants.ts on lines 334..354
    ui/src/modules/robot/constants.ts on lines 355..375
    ui/src/modules/robot/constants.ts on lines 413..433
    ui/src/modules/robot/constants.ts on lines 496..516
    ui/src/modules/robot/constants.ts on lines 572..594

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

    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

      automateCampaigns: {
        text: 'Campaigns',
        description:
          'Create campaigns that automatically deliver information to customers based on segments and labels',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 235..255
    ui/src/modules/robot/constants.ts on lines 334..354
    ui/src/modules/robot/constants.ts on lines 355..375
    ui/src/modules/robot/constants.ts on lines 392..412
    ui/src/modules/robot/constants.ts on lines 413..433
    ui/src/modules/robot/constants.ts on lines 572..594

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

    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

      salesPipeline: {
        text: 'Sales stage',
        description:
          'Create sales stages to track your entire sales pipeline from one dashboard',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 6 other locations - About 2 hrs to fix
    ui/src/modules/robot/constants.ts on lines 235..255
    ui/src/modules/robot/constants.ts on lines 334..354
    ui/src/modules/robot/constants.ts on lines 392..412
    ui/src/modules/robot/constants.ts on lines 413..433
    ui/src/modules/robot/constants.ts on lines 496..516
    ui/src/modules/robot/constants.ts on lines 572..594

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

    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

    export const ROLE_OPTIONS = [
      { _id: 'sales', name: 'Sales' },
      { _id: 'marketing', name: 'Marketing' },
      { _id: 'customerSupport', name: 'Customer support' },
      { _id: 'managementAndOperations', name: 'Management and Operations' },
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 4 other locations - About 1 hr to fix
    ui/src/modules/boards/constants.ts on lines 101..122
    ui/src/modules/customers/constants.ts on lines 70..76
    ui/src/modules/customers/constants.ts on lines 90..96
    ui/src/modules/knowledgeBase/icons.constant.ts on lines 53..68

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

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

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

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

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

    Refactorings

    Further Reading

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

      createProductServices: {
        text: 'Product & Service',
        description: 'Add and categorize your products and services to our system',
        videoUrl: '',
        videoThumb: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 555..571
    ui/src/modules/robot/constants.ts on lines 595..611

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

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

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

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

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

    Refactorings

    Further Reading

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

      customizeSegmentation: {
        text: 'Contact',
        description:
          'A segment is smaller group of your contacts defined by rules or filters that you set',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 555..571
    ui/src/modules/robot/constants.ts on lines 595..611

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

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

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

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

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

    Refactorings

    Further Reading

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

      prepareMailResponseTemplates: {
        text: 'Email/response template',
        description:
          'You can save a lot of time by preparing email/response templates, all you need to do is automate your entire operation with prepared scripts. ',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 555..571
    ui/src/modules/robot/constants.ts on lines 595..611

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

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

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

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

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

    Refactorings

    Further Reading

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

      customizeDatabase: {
        text: 'Properties',
        description:
          'Adjust customer data settings, add properties for customer information, etc for your customer database',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 555..571
    ui/src/modules/robot/constants.ts on lines 595..611

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

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

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

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

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

    Refactorings

    Further Reading

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

      customizeReports: {
        text: 'Reports',
        description:
          'Reports help you oversee the progress and effectiveness of your organization’s activities and make management decisions',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 555..571

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

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

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

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

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

    Refactorings

    Further Reading

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

      integrationOtherApps: {
        text: 'Integration/ App Store',
        description:
          'You can bring all inboxes to one window and manage your interactions with your customers',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 555..571
    ui/src/modules/robot/constants.ts on lines 595..611

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

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

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

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

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

    Refactorings

    Further Reading

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

      createLeadGenerationForm: {
        text: 'Form',
        description:
          "This allows you to add a form on your organization's website/business messenger to collect information from your potential leads",
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 256..272
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 595..611

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

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

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

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

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

    Refactorings

    Further Reading

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

      channelBrands: {
        text: 'Brand & Channel Set Up',
        description:
          'Creating brands and channels allows you can organize and view all messages and emails sent from customers under one platform',
        videoUrl: '',
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 7 other locations - About 1 hr to fix
    ui/src/modules/robot/constants.ts on lines 273..290
    ui/src/modules/robot/constants.ts on lines 291..308
    ui/src/modules/robot/constants.ts on lines 376..391
    ui/src/modules/robot/constants.ts on lines 462..478
    ui/src/modules/robot/constants.ts on lines 479..495
    ui/src/modules/robot/constants.ts on lines 555..571
    ui/src/modules/robot/constants.ts on lines 595..611

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

    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

    export const ROLE_VALUE = [
      { _id: 'answerOne', name: 'I’ve never used a CRM or business tools before' },
      { _id: 'answerTwo', name: 'I’m new to erxes, but I have used a CRM before' },
      { _id: 'answerThree', name: 'I know my way around erxes well' }
    ];
    Severity: Major
    Found in ui/src/modules/robot/constants.ts and 3 other locations - About 35 mins to fix
    ui/src/modules/automations/components/forms/actions/constants.ts on lines 32..45
    ui/src/modules/engage/constants.ts on lines 20..24
    ui/src/modules/segments/components/constants.ts on lines 113..117

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

    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