superdesk/superdesk-client-core

View on GitHub
e2e/client/specs/helpers/monitoring.ts

Summary

Maintainability
F
1 wk
Test Coverage

Function constructor has 544 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    constructor() {
        this.config = element(by.className('aggregate-settings'));
        this.label = element(by.model('widget.configuration.label'));

        this.openMonitoring = function() {
Severity: Major
Found in e2e/client/specs/helpers/monitoring.ts - About 2 days to fix

    File monitoring.ts has 679 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* eslint-disable newline-per-chained-call */
    
    import {
        element, by, browser, protractor, ElementFinder, promise as wdpromise, ExpectedConditions as EC,
    } from 'protractor';
    Severity: Major
    Found in e2e/client/specs/helpers/monitoring.ts - About 1 day to fix

      Function constructor has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

          constructor() {
              this.config = element(by.className('aggregate-settings'));
              this.label = element(by.model('widget.configuration.label'));
      
              this.openMonitoring = function() {
      Severity: Minor
      Found in e2e/client/specs/helpers/monitoring.ts - About 4 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function actionOnItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              this.actionOnItem = function(action, group, item, useFullButtonText, confirm) {
      Severity: Minor
      Found in e2e/client/specs/helpers/monitoring.ts - About 35 mins to fix

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

                this.removeFromFirstDesk = function(group, item) {
                    var crtItem = this.getItem(group, item);
        
                    crtItem.element(by.className('icon-bell')).click();
                    var deskList = element(by.className('highlights-list-menu'));
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 4 hrs to fix
        e2e/client/specs/helpers/monitoring.ts on lines 836..844

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

        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

                this.removeFromFirstHighlight = function(group, item) {
                    var crtItem = this.getItem(group, item);
        
                    crtItem.element(by.className('icon-multi-star')).click();
                    var highlightList = element(by.className('highlights-list-menu'));
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 4 hrs to fix
        e2e/client/specs/helpers/monitoring.ts on lines 851..859

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

        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

                this.actionOnDeskSingleView = function() {
                    var elem = element.all(by.className('stage-header__name'));
                    var header = elem.all(by.css('[ng-click="viewSingleGroup(group, \'desk\')"]')).first();
        
                    header.click();
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 2 hrs to fix
        e2e/client/specs/helpers/monitoring.ts on lines 240..245

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

        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

                this.actionOnStageSingleView = function() {
                    var elem = element.all(by.className('stage-header__name'));
                    var subheader = elem.all(by.css('[ng-click="viewSingleGroup(group, \'stage\')"]')).first();
        
                    subheader.click();
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 2 hrs to fix
        e2e/client/specs/helpers/monitoring.ts on lines 227..232

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

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

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

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

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

        Refactorings

        Further Reading

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

                    function textFilter(elem) {
                        return elem.element(by.tagName('button')).getText()
                            .then((text) => text.toUpperCase().indexOf(desk.toUpperCase()) >= 0);
                    }
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 1 hr to fix
        e2e/client/specs/helpers/workspace.ts on lines 71..74

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

        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

                    if (useFullButtonText) {
                        menu.element(by.buttonText(action)).click();
                    } else {
                        menu.all(by.partialButtonText(action)).first().click();
                    }
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 1 hr to fix
        e2e/client/specs/helpers/content.ts on lines 78..84

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

                this.toggleDeskOutput = function(desk) {
                    this.getDesk(desk).all(by.model('editGroups[desk._id + output.id].selected')).get(1).click();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 1 hr to fix
        e2e/client/specs/helpers/monitoring.ts on lines 645..647

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 59.

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

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

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

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

        Refactorings

        Further Reading

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

                this.toggleScheduledDeskOutput = function(desk) {
                    this.getDesk(desk).all(by.model('editGroups[desk._id + output.id].selected')).get(0).click();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 1 hr to fix
        e2e/client/specs/helpers/monitoring.ts on lines 641..643

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 59.

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

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

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

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

        Refactorings

        Further Reading

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

                this.getPackageItem = function(index) {
                    var elemIndex = index ? index : 0;
        
                    return element.all(by.className('package-item__item-text-group')).get(elemIndex);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 1 hr to fix
        e2e/client/specs/helpers/monitoring.ts on lines 978..982

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

        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

                this.getPackageItemActionDropdown = function(index) {
                    var elemIndex = index ? index : 0;
        
                    return element.all(by.className('more-activity-toggle')).get(elemIndex);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 1 hr to fix
        e2e/client/specs/helpers/monitoring.ts on lines 972..976

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

        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

                this.getStageSingleViewTitle = function() {
                    return element(by.className('subnav__stage-group')).element(by.className('dropdown__toggle')).getText();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 2 other locations - About 55 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 259..262
        e2e/client/specs/helpers/publish_queue.ts on lines 69..73

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

                this.getMonitoringHomeTitle = function() {
                    return element(by.css('[ng-if="!monitoring.singleGroup && type === \'monitoring\'"]'))
                        .element(by.className('dropdown__toggle')).getText();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 2 other locations - About 55 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 247..249
        e2e/client/specs/helpers/publish_queue.ts on lines 69..73

        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

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

                    if (typeof canCloseSettingsModal !== 'boolean') {
                        this.nextStages();
                        this.nextSearches();
                        this.nextReorder();
                        this.saveSettings();
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 55 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 950..955

        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

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

                    if (typeof canCloseSettingsModal !== 'boolean') {
                        this.nextStages();
                        this.nextSearches();
                        this.nextReorder();
                        this.saveSettings();
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 55 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 921..926

        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

                this.getTextItem = function(group, item) {
                    return this.getItem(group, item).element(by.className('item-heading')).getText();
                };
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 55 mins to fix
        e2e/client/specs/helpers/master_desks.ts on lines 70..72

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

                this.toggleGlobalSearch = function(search) {
                    this.getGlobalSearch(search).element(by.css('[ng-click="setSearchInfo(search._id)"]')).click();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 4 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 1054..1056
        e2e/client/specs/helpers/master_desks.ts on lines 74..76
        e2e/client/specs/helpers/monitoring.ts on lines 633..635
        e2e/client/specs/helpers/monitoring.ts on lines 657..659

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.togglePrivateSearch = function(search) {
                    this.getPrivateSearch(search).element(by.css('[ng-click="setSearchInfo(search._id)"]')).click();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 4 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 1054..1056
        e2e/client/specs/helpers/master_desks.ts on lines 74..76
        e2e/client/specs/helpers/monitoring.ts on lines 633..635
        e2e/client/specs/helpers/monitoring.ts on lines 653..655

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.getSpikedTextItem = function(index) {
                    return this.getSpikedItem(index).element(by.className('item-heading')).getText();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 5 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 391..393
        e2e/client/specs/helpers/authoring.ts on lines 1037..1039
        e2e/client/specs/helpers/monitoring.ts on lines 625..627
        e2e/client/specs/helpers/monitoring.ts on lines 629..631
        e2e/client/specs/helpers/monitoring.ts on lines 673..675

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.getGlobalSearchText = function(search) {
                    return this.getGlobalSearch(search).element(by.css('.desk-title')).getText();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 5 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 391..393
        e2e/client/specs/helpers/authoring.ts on lines 1037..1039
        e2e/client/specs/helpers/monitoring.ts on lines 326..328
        e2e/client/specs/helpers/monitoring.ts on lines 629..631
        e2e/client/specs/helpers/monitoring.ts on lines 673..675

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.getOrderItemText = function(item) {
                    return this.getOrderItem(item).element(by.css('.group-title')).getText();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 5 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 391..393
        e2e/client/specs/helpers/authoring.ts on lines 1037..1039
        e2e/client/specs/helpers/monitoring.ts on lines 326..328
        e2e/client/specs/helpers/monitoring.ts on lines 625..627
        e2e/client/specs/helpers/monitoring.ts on lines 629..631

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.getPrivateSearchText = function(search) {
                    return this.getPrivateSearch(search).element(by.css('.desk-title')).getText();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 5 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 391..393
        e2e/client/specs/helpers/authoring.ts on lines 1037..1039
        e2e/client/specs/helpers/monitoring.ts on lines 326..328
        e2e/client/specs/helpers/monitoring.ts on lines 625..627
        e2e/client/specs/helpers/monitoring.ts on lines 673..675

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.toggleDesk = function(desk) {
                    this.getDesk(desk).element(by.model('editGroups[desk._id].selected')).click();
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 4 other locations - About 50 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 1054..1056
        e2e/client/specs/helpers/master_desks.ts on lines 74..76
        e2e/client/specs/helpers/monitoring.ts on lines 653..655
        e2e/client/specs/helpers/monitoring.ts on lines 657..659

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 51.

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

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

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

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

        Refactorings

        Further Reading

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

                this.getDesk = function(index) {
                    return this.config.all(by.repeater('desk in desks')).get(index);
                };
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 45 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 617..619

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

        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

                this.getGlobalSearch = function(index) {
                    return this.config.all(by.repeater('search in globalSavedSearches')).get(index);
                };
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 45 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 603..605

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

        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

                this.previousSearches = function() {
                    element(by.id('previousBtn')).click();
                    browser.sleep(500);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 554..557
        e2e/client/specs/helpers/monitoring.ts on lines 559..562
        e2e/client/specs/helpers/monitoring.ts on lines 569..572
        e2e/client/specs/helpers/monitoring.ts on lines 574..577
        e2e/client/specs/helpers/monitoring.ts on lines 579..582
        e2e/client/specs/helpers/monitoring.ts on lines 716..719

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

        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

                this.previousReorder = function() {
                    element(by.id('previousBtn')).click();
                    browser.sleep(500);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 554..557
        e2e/client/specs/helpers/monitoring.ts on lines 559..562
        e2e/client/specs/helpers/monitoring.ts on lines 564..567
        e2e/client/specs/helpers/monitoring.ts on lines 569..572
        e2e/client/specs/helpers/monitoring.ts on lines 579..582
        e2e/client/specs/helpers/monitoring.ts on lines 716..719

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

        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

                this.nextSearches = function() {
                    element(by.id('nextBtn')).click();
                    browser.sleep(500);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 554..557
        e2e/client/specs/helpers/monitoring.ts on lines 564..567
        e2e/client/specs/helpers/monitoring.ts on lines 569..572
        e2e/client/specs/helpers/monitoring.ts on lines 574..577
        e2e/client/specs/helpers/monitoring.ts on lines 579..582
        e2e/client/specs/helpers/monitoring.ts on lines 716..719

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

        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

                this.nextReorder = function() {
                    element(by.id('nextBtn')).click();
                    browser.sleep(500);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 554..557
        e2e/client/specs/helpers/monitoring.ts on lines 559..562
        e2e/client/specs/helpers/monitoring.ts on lines 564..567
        e2e/client/specs/helpers/monitoring.ts on lines 574..577
        e2e/client/specs/helpers/monitoring.ts on lines 579..582
        e2e/client/specs/helpers/monitoring.ts on lines 716..719

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

        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

                this.openCreateMenu = function() {
                    element(by.css('[data-test-id="content-create"]')).click();
                    browser.sleep(100);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 554..557
        e2e/client/specs/helpers/monitoring.ts on lines 559..562
        e2e/client/specs/helpers/monitoring.ts on lines 564..567
        e2e/client/specs/helpers/monitoring.ts on lines 569..572
        e2e/client/specs/helpers/monitoring.ts on lines 574..577
        e2e/client/specs/helpers/monitoring.ts on lines 579..582

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

        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

                this.nextStages = function() {
                    element(by.id('nextBtn')).click();
                    browser.sleep(500);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 559..562
        e2e/client/specs/helpers/monitoring.ts on lines 564..567
        e2e/client/specs/helpers/monitoring.ts on lines 569..572
        e2e/client/specs/helpers/monitoring.ts on lines 574..577
        e2e/client/specs/helpers/monitoring.ts on lines 579..582
        e2e/client/specs/helpers/monitoring.ts on lines 716..719

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

        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

                this.previousMax = function() {
                    element(by.id('previousBtn')).click();
                    browser.sleep(500);
                };
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 7 other locations - About 40 mins to fix
        e2e/client/specs/helpers/highlights.ts on lines 68..71
        e2e/client/specs/helpers/monitoring.ts on lines 554..557
        e2e/client/specs/helpers/monitoring.ts on lines 559..562
        e2e/client/specs/helpers/monitoring.ts on lines 564..567
        e2e/client/specs/helpers/monitoring.ts on lines 569..572
        e2e/client/specs/helpers/monitoring.ts on lines 574..577
        e2e/client/specs/helpers/monitoring.ts on lines 716..719

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

        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

                    browser.actions()
                        .mouseMove(header, {x: -50, y: -50})
                        .mouseMove(header)
                        .perform();
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 2 other locations - About 40 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 492..495
        e2e/client/specs/helpers/search.ts on lines 240..243

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

        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

                    browser.actions()
                        .mouseMove(itemTypeAndMultiSelect, {x: -100, y: -100})
                        .mouseMove(itemTypeAndMultiSelect)
                        .perform();
        Severity: Major
        Found in e2e/client/specs/helpers/monitoring.ts and 2 other locations - About 40 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 471..474
        e2e/client/specs/helpers/search.ts on lines 240..243

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

        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

                this.closeHighlightsPopup = () => {
                    const closeBtn = element(by.className('highlights-list-menu')).element(by.className('icon-close-small'));
        
                    click(closeBtn, 'Can\'t click on close in highlights popup');
                };
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 35 mins to fix
        e2e/client/specs/helpers/authoring.ts on lines 636..640

        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

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

                this.showSearch = function() {
                    el(['workspace-navigation'], by.css('[aria-label="Search"]')).click();
                };
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 30 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 159..161

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 45.

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

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

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

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

        Refactorings

        Further Reading

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

                this.showPersonal = function() {
                    el(['workspace-navigation'], by.css('[aria-label="Personal space"]')).click();
                };
        Severity: Minor
        Found in e2e/client/specs/helpers/monitoring.ts and 1 other location - About 30 mins to fix
        e2e/client/specs/helpers/monitoring.ts on lines 166..168

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 45.

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

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

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

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

        Refactorings

        Further Reading

        There are no issues that match your filters.

        Category
        Status