swimlane/ngx-ui

View on GitHub
cypress/e2e/components/json-editor.cy.ts

Summary

Maintainability
F
1 wk
Test Coverage

File json-editor.cy.ts has 504 lines of code (exceeds 250 allowed). Consider refactoring.
Open

describe('Json Editor', () => {
  before(() => {
    cy.visit('/json-editor');
    cy.get('.page-loader').should('not.exist', { timeout: 20000 });
  });
Severity: Major
Found in cypress/e2e/components/json-editor.cy.ts - About 1 day to fix

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

        it('should allow modifying the nested property title', () => {
          cy.get('ngx-property-config').as('propertyConfig');
          cy.get('@propertyConfig').within(() => {
            cy.get('div.header>span').should('have.text', 'Property Configuration');
            cy.get('ngx-input').first().should('exist').ngxFill('str_1');
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 1 day to fix
    cypress/e2e/components/json-editor.cy.ts on lines 490..503

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

    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

        it('should allow modifying the property title', () => {
          cy.get('ngx-property-config').as('propertyConfig');
          cy.get('@propertyConfig').within(() => {
            cy.get('div.header>span').should('have.text', 'Property Configuration');
            cy.get('ngx-input').first().should('exist').ngxFill('obj_1');
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 1 day to fix
    cypress/e2e/components/json-editor.cy.ts on lines 521..534

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

    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

            cy.get('@jsonEditorFlat').within(() => {
              cy.get('.add-button')
                .last()
                .within(() => {
                  cy.get('ngx-dropdown').as('addPropDropdown').scrollIntoView().should('be.visible');
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 6 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 508..517

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

    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

            cy.get('@jsonEditorFlat').within(() => {
              cy.get('.add-button')
                .first()
                .within(() => {
                  cy.get('ngx-dropdown').as('addPropDropdown').scrollIntoView().should('be.visible');
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 6 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 477..486

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

    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

                it('Adding', () => {
                  cy.get('@addPropDropdown').find('ngx-dropdown-toggle').should('contain.text', 'Add a property').click();
                  cy.get('@addPropDropdown')
                    .find('ngx-dropdown-menu')
                    .should('exist')
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 3 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 267..275

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

    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

                it('Adding', () => {
                  cy.get('@addPropDropdown').find('ngx-dropdown-toggle').should('contain.text', 'Add a property').click();
                  cy.get('@addPropDropdown')
                    .find('ngx-dropdown-menu')
                    .should('exist')
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 3 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 335..343

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

    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

        it('Should have data', () => {
          cy.get('ngx-section').eq(1).as('section2');
          cy.get('@section2').within(() => {
            cy.get('header h1').should('have.text', 'ngx-json-editor-flat');
            cy.get('ngx-json-editor-flat').should('exist');
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 3 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 21..27

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 2 locations. Consider refactoring.
    Open

          cy.get('@section1').within(() => {
            cy.get('ngx-json-object-node > div > div').eq(10).as('divContainerBinary');
            cy.get('@divContainerBinary').within(() => {
              cy.get('.property-def .title').should('contain.text', 'File Binary');
              cy.get('ngx-json-editor-node textarea').should('exist');
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 3 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 32..38

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

              describe('Check root schema and model sync', () => {
                it('Model', () => {
                  cy.get('@rootModelValue').should('contain', '{\n  "string": "abc",\n  "array": [\n    0\n  ]\n}');
                });
                it('Schema', () => {
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 2 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 431..440

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 86.

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

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

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

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

    Refactorings

    Further Reading

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

              describe('Check root schema and model sync', () => {
                it('Model', () => {
                  cy.get('@rootModelValue').should('contain', '{\n  "string": "abc"\n}');
                });
                it('Schema', () => {
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 2 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 408..417

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 86.

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

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

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

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

    Refactorings

    Further Reading

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

              it('Collapse', () => {
                cy.get('@stringNode').should('be.visible');
                cy.get('@toggleButton').should('contain', 'Collapse').click();
                cy.get('@stringNode').should('not.be.visible');
              });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 2 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 454..458

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

    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

              it('Expand', () => {
                cy.get('@stringNode').should('not.be.visible');
                cy.get('@toggleButton').should('contain', 'Expand').click();
                cy.get('@stringNode').should('be.visible');
              });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 2 hrs to fix
    cypress/e2e/components/json-editor.cy.ts on lines 449..453

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

    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

            beforeEach(() => {
              cy.get('@section3').find('ngx-json-editor-flat div.node').eq(0).as('rootNode');
              cy.get('@rootNode').find('ngx-tabs').as('rootTabs');
            });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 1 hr to fix
    cypress/e2e/components/json-editor.cy.ts on lines 278..281

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

    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

                  beforeEach(() => {
                    cy.get('@section3').find('ngx-json-editor-flat div.node').eq(1).as('stringNode');
                    cy.get('@stringNode').find('ngx-tabs').as('stringTabs');
                  });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 1 hr to fix
    cypress/e2e/components/json-editor.cy.ts on lines 229..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 74.

    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

              cy.get('ngx-json-editor-node-info').within(() => {
                cy.get('.name').should('contain', 'File Binary');
                cy.get('.type').should('contain', 'String');
              });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 1 other location - About 1 hr to fix
    cypress/e2e/dialogs/notifications.cy.ts on lines 18..21

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

                cy.get('.add-button')
                  .should('be.visible')
                  .within(() => {
                    cy.get('ngx-dropdown-toggle').should('contain.text', 'Add an item').click();
                  });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 2 other locations - About 1 hr to fix
    cypress/e2e/components/json-editor.cy.ts on lines 135..139
    cypress/e2e/components/json-editor.cy.ts on lines 149..153

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

                  cy.get('.add-button')
                    .should('be.visible')
                    .within(() => {
                      cy.get('ngx-dropdown-toggle').should('contain.text', 'Add a property').click();
                    });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 2 other locations - About 1 hr to fix
    cypress/e2e/components/json-editor.cy.ts on lines 96..100
    cypress/e2e/components/json-editor.cy.ts on lines 135..139

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

              cy.get('.add-button')
                .should('be.visible')
                .within(() => {
                  cy.get('ngx-dropdown-toggle').should('contain.text', 'Add an item').click();
                });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 2 other locations - About 1 hr to fix
    cypress/e2e/components/json-editor.cy.ts on lines 96..100
    cypress/e2e/components/json-editor.cy.ts on lines 149..153

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

              cy.get('ngx-dropdown-menu')
                .should('be.visible')
                .within(() => {
                  cy.contains('li', 'Object').click();
                });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 5 other locations - About 50 mins to fix
    cypress/e2e/components/json-editor.cy.ts on lines 79..83
    cypress/e2e/components/json-editor.cy.ts on lines 101..105
    cypress/e2e/components/json-editor.cy.ts on lines 121..125
    cypress/e2e/components/json-editor.cy.ts on lines 154..158
    cypress/e2e/components/json-editor.cy.ts on lines 199..203

    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

                      cy.get('ngx-dropdown-menu')
                        .should('be.visible')
                        .within(() => {
                          cy.contains('li', 'String').click();
                        });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 5 other locations - About 50 mins to fix
    cypress/e2e/components/json-editor.cy.ts on lines 79..83
    cypress/e2e/components/json-editor.cy.ts on lines 101..105
    cypress/e2e/components/json-editor.cy.ts on lines 121..125
    cypress/e2e/components/json-editor.cy.ts on lines 140..144
    cypress/e2e/components/json-editor.cy.ts on lines 154..158

    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

              cy.get('ngx-dropdown-menu')
                .should('be.visible')
                .within(() => {
                  cy.contains('li', 'Delete').click();
                });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 5 other locations - About 50 mins to fix
    cypress/e2e/components/json-editor.cy.ts on lines 79..83
    cypress/e2e/components/json-editor.cy.ts on lines 101..105
    cypress/e2e/components/json-editor.cy.ts on lines 140..144
    cypress/e2e/components/json-editor.cy.ts on lines 154..158
    cypress/e2e/components/json-editor.cy.ts on lines 199..203

    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

              cy.get('ngx-dropdown-menu')
                .should('exist')
                .within(() => {
                  cy.contains('li', 'Array').click();
                });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 5 other locations - About 50 mins to fix
    cypress/e2e/components/json-editor.cy.ts on lines 101..105
    cypress/e2e/components/json-editor.cy.ts on lines 121..125
    cypress/e2e/components/json-editor.cy.ts on lines 140..144
    cypress/e2e/components/json-editor.cy.ts on lines 154..158
    cypress/e2e/components/json-editor.cy.ts on lines 199..203

    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

                cy.get('ngx-dropdown-menu')
                  .should('be.visible')
                  .within(() => {
                    cy.contains('li', 'String').click();
                  });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 5 other locations - About 50 mins to fix
    cypress/e2e/components/json-editor.cy.ts on lines 79..83
    cypress/e2e/components/json-editor.cy.ts on lines 121..125
    cypress/e2e/components/json-editor.cy.ts on lines 140..144
    cypress/e2e/components/json-editor.cy.ts on lines 154..158
    cypress/e2e/components/json-editor.cy.ts on lines 199..203

    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

                  cy.get('ngx-dropdown-menu')
                    .should('be.visible')
                    .within(() => {
                      cy.contains('li', 'String').click();
                    });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 5 other locations - About 50 mins to fix
    cypress/e2e/components/json-editor.cy.ts on lines 79..83
    cypress/e2e/components/json-editor.cy.ts on lines 101..105
    cypress/e2e/components/json-editor.cy.ts on lines 121..125
    cypress/e2e/components/json-editor.cy.ts on lines 140..144
    cypress/e2e/components/json-editor.cy.ts on lines 199..203

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

      before(() => {
        cy.visit('/json-editor');
        cy.get('.page-loader').should('not.exist', { timeout: 20000 });
      });
    Severity: Major
    Found in cypress/e2e/components/json-editor.cy.ts and 14 other locations - About 40 mins to fix
    cypress/e2e/basic.cy.ts on lines 2..5
    cypress/e2e/components/dropdowns.cy.ts on lines 2..5
    cypress/e2e/components/overlay.cy.ts on lines 2..5
    cypress/e2e/components/plus-menu.cy.ts on lines 2..5
    cypress/e2e/components/stepper.cy.ts on lines 2..5
    cypress/e2e/dialogs/alerts.cy.ts on lines 2..5
    cypress/e2e/dialogs/large-format-dialog.cy.ts on lines 2..5
    cypress/e2e/dialogs/medium-format-dialog.cy.ts on lines 2..5
    cypress/e2e/dialogs/nag.cy.ts on lines 2..5
    cypress/e2e/dialogs/tooltips.cy.ts on lines 2..5
    cypress/e2e/forms/code-editor.cy.ts on lines 2..5
    cypress/e2e/forms/slider.cy.ts on lines 2..5
    cypress/e2e/forms/toggles.cy.ts on lines 2..5
    cypress/e2e/testing.cy.ts on lines 2..5

    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

    There are no issues that match your filters.

    Category
    Status