arthurvasconcelos/vue-izitoast

View on GitHub

Showing 22 of 22 total issues

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

        cy.get('.test-topRight')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: topRight')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 79..88
cypress/integration/vue-izitoast.spec.js on lines 90..99
cypress/integration/vue-izitoast.spec.js on lines 112..121
cypress/integration/vue-izitoast.spec.js on lines 123..132
cypress/integration/vue-izitoast.spec.js on lines 134..143
cypress/integration/vue-izitoast.spec.js on lines 145..154

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

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

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

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

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

Refactorings

Further Reading

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

        cy.get('.test-bottomCenter')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: bottomCenter')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 79..88
cypress/integration/vue-izitoast.spec.js on lines 90..99
cypress/integration/vue-izitoast.spec.js on lines 101..110
cypress/integration/vue-izitoast.spec.js on lines 112..121
cypress/integration/vue-izitoast.spec.js on lines 123..132
cypress/integration/vue-izitoast.spec.js on lines 145..154

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

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

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

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

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

Refactorings

Further Reading

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

        cy.get('.test-topLeft')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: topLeft')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 79..88
cypress/integration/vue-izitoast.spec.js on lines 90..99
cypress/integration/vue-izitoast.spec.js on lines 101..110
cypress/integration/vue-izitoast.spec.js on lines 123..132
cypress/integration/vue-izitoast.spec.js on lines 134..143
cypress/integration/vue-izitoast.spec.js on lines 145..154

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

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

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

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

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

Refactorings

Further Reading

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

        cy.get('.test-center')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: center')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 79..88
cypress/integration/vue-izitoast.spec.js on lines 90..99
cypress/integration/vue-izitoast.spec.js on lines 101..110
cypress/integration/vue-izitoast.spec.js on lines 112..121
cypress/integration/vue-izitoast.spec.js on lines 123..132
cypress/integration/vue-izitoast.spec.js on lines 134..143

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

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

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

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

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

Refactorings

Further Reading

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

        cy.get('.test-bottomLeft')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: bottomLeft')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 79..88
cypress/integration/vue-izitoast.spec.js on lines 101..110
cypress/integration/vue-izitoast.spec.js on lines 112..121
cypress/integration/vue-izitoast.spec.js on lines 123..132
cypress/integration/vue-izitoast.spec.js on lines 134..143
cypress/integration/vue-izitoast.spec.js on lines 145..154

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

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

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

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

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

Refactorings

Further Reading

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

        cy.get('.test-topCenter')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: topCenter')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 79..88
cypress/integration/vue-izitoast.spec.js on lines 90..99
cypress/integration/vue-izitoast.spec.js on lines 101..110
cypress/integration/vue-izitoast.spec.js on lines 112..121
cypress/integration/vue-izitoast.spec.js on lines 134..143
cypress/integration/vue-izitoast.spec.js on lines 145..154

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

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

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

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

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

Refactorings

Further Reading

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

        cy.get('.test-bottomRight')
            .click()
            .get('.iziToast')
            .should('have.css', 'display', 'inline-block')
            .should('contain.text', 'Toast positioned to: bottomRight')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 6 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 90..99
cypress/integration/vue-izitoast.spec.js on lines 101..110
cypress/integration/vue-izitoast.spec.js on lines 112..121
cypress/integration/vue-izitoast.spec.js on lines 123..132
cypress/integration/vue-izitoast.spec.js on lines 134..143
cypress/integration/vue-izitoast.spec.js on lines 145..154

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

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

    it('Should show error toast.', () => {
        cy.get('.test-error')
            .click();

        cy.get('.iziToast')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 4 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 23..32
cypress/integration/vue-izitoast.spec.js on lines 34..43
cypress/integration/vue-izitoast.spec.js on lines 45..54
cypress/integration/vue-izitoast.spec.js on lines 67..76

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

    it('Should show question toast.', () => {
        cy.get('.test-question')
            .click();

        cy.get('.iziToast')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 4 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 23..32
cypress/integration/vue-izitoast.spec.js on lines 34..43
cypress/integration/vue-izitoast.spec.js on lines 45..54
cypress/integration/vue-izitoast.spec.js on lines 56..65

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

    it('Should show warning toast.', () => {
        cy.get('.test-warning')
            .click();

        cy.get('.iziToast')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 4 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 23..32
cypress/integration/vue-izitoast.spec.js on lines 34..43
cypress/integration/vue-izitoast.spec.js on lines 56..65
cypress/integration/vue-izitoast.spec.js on lines 67..76

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

    it('Should show info toast.', () => {
        cy.get('.test-info')
            .click();

        cy.get('.iziToast')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 4 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 34..43
cypress/integration/vue-izitoast.spec.js on lines 45..54
cypress/integration/vue-izitoast.spec.js on lines 56..65
cypress/integration/vue-izitoast.spec.js on lines 67..76

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

    it('Should show success toast.', () => {
        cy.get('.test-success')
            .click();

        cy.get('.iziToast')
Severity: Major
Found in cypress/integration/vue-izitoast.spec.js and 4 other locations - About 2 hrs to fix
cypress/integration/vue-izitoast.spec.js on lines 23..32
cypress/integration/vue-izitoast.spec.js on lines 45..54
cypress/integration/vue-izitoast.spec.js on lines 56..65
cypress/integration/vue-izitoast.spec.js on lines 67..76

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

    info(message, title = '', options = {}) {
        VueIziToast._checkParams(message, title, options, 'info');
        this._izi.info(Object.assign({}, options, { message, title }));
    }
Severity: Major
Found in src/vue-izitoast.js and 5 other locations - About 1 hr to fix
src/vue-izitoast.js on lines 120..123
src/vue-izitoast.js on lines 147..150
src/vue-izitoast.js on lines 152..155
src/vue-izitoast.js on lines 157..160
src/vue-izitoast.js on lines 162..165

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

    success(message, title = '', options = {}) {
        VueIziToast._checkParams(message, title, options, 'success');
        this._izi.success(Object.assign({}, options, { message, title }));
    }
Severity: Major
Found in src/vue-izitoast.js and 5 other locations - About 1 hr to fix
src/vue-izitoast.js on lines 120..123
src/vue-izitoast.js on lines 142..145
src/vue-izitoast.js on lines 152..155
src/vue-izitoast.js on lines 157..160
src/vue-izitoast.js on lines 162..165

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

    error(message, title = '', options = {}) {
        VueIziToast._checkParams(message, title, options, 'error');
        this._izi.error(Object.assign({}, options, { message, title }));
    }
Severity: Major
Found in src/vue-izitoast.js and 5 other locations - About 1 hr to fix
src/vue-izitoast.js on lines 120..123
src/vue-izitoast.js on lines 142..145
src/vue-izitoast.js on lines 147..150
src/vue-izitoast.js on lines 152..155
src/vue-izitoast.js on lines 162..165

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

    warning(message, title = '', options = {}) {
        VueIziToast._checkParams(message, title, options, 'warning');
        this._izi.warning(Object.assign({}, options, { message, title }));
    }
Severity: Major
Found in src/vue-izitoast.js and 5 other locations - About 1 hr to fix
src/vue-izitoast.js on lines 120..123
src/vue-izitoast.js on lines 142..145
src/vue-izitoast.js on lines 147..150
src/vue-izitoast.js on lines 157..160
src/vue-izitoast.js on lines 162..165

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

    show(message, title = '', options = {}) {
        VueIziToast._checkParams(message, title, options, 'show');
        this._izi.show(Object.assign({}, options, { message, title }));
    }
Severity: Major
Found in src/vue-izitoast.js and 5 other locations - About 1 hr to fix
src/vue-izitoast.js on lines 142..145
src/vue-izitoast.js on lines 147..150
src/vue-izitoast.js on lines 152..155
src/vue-izitoast.js on lines 157..160
src/vue-izitoast.js on lines 162..165

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

    question(message, title = '', options = {}) {
        VueIziToast._checkParams(message, title, options, 'question');
        this._izi.question(Object.assign({}, options, { message, title }));
    }
Severity: Major
Found in src/vue-izitoast.js and 5 other locations - About 1 hr to fix
src/vue-izitoast.js on lines 120..123
src/vue-izitoast.js on lines 142..145
src/vue-izitoast.js on lines 147..150
src/vue-izitoast.js on lines 152..155
src/vue-izitoast.js on lines 157..160

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

Function install has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function install(Vue, options = {}) {
    const isDev = devMode();

    if (options && options.constructor !== Object) {
        throw 'Options must be a object';
Severity: Minor
Found in src/vue-izitoast.js - About 1 hr to fix

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

        constructor(options = {}) {
            // http://izitoast.marcelodolce.com/#Options
            const defaults = {
                zindex: 99999,
                layout: 1,
    Severity: Minor
    Found in src/vue-izitoast.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language