FreeAllMedia/forbin

View on GitHub

Showing 42 of 42 total issues

File forbin.spec.js has 584 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import Controller from "../../index";
import flowsync from "flowsync";
import sinon from "sinon";

describe("Controller(...options)", () => {
Severity: Major
Found in es6/spec/forbin.spec.js - About 1 day to fix

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

        describe(".setup(...options)", () => {
            it("should be called during construction", () => {
                setupSpy.called.should.be.true;
            });
    
    
    Severity: Major
    Found in es6/spec/forbin.spec.js and 2 other locations - About 2 hrs to fix
    es6/spec/forbin.spec.js on lines 62..70
    es6/spec/forbin.spec.js on lines 82..90

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

    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

        describe(".initialize(...options)", () => {
            it("should be called during construction", () => {
                initializeSpy.called.should.be.true;
            });
    
    
    Severity: Major
    Found in es6/spec/forbin.spec.js and 2 other locations - About 2 hrs to fix
    es6/spec/forbin.spec.js on lines 72..80
    es6/spec/forbin.spec.js on lines 82..90

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

    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

        describe(".filters(...options)", () => {
            it("should be called during construction", () => {
                filterSpy.called.should.be.true;
            });
    
    
    Severity: Major
    Found in es6/spec/forbin.spec.js and 2 other locations - About 2 hrs to fix
    es6/spec/forbin.spec.js on lines 62..70
    es6/spec/forbin.spec.js on lines 72..80

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

    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

    gulp.task("build-spec", () => {
        return gulp.src(paths.source.spec)
            .pipe(babel())
            .pipe(gulp.dest(paths.build.directories.spec));
    });
    Severity: Major
    Found in tasks/build-spec.js and 1 other location - About 2 hrs to fix
    tasks/build-lib.js on lines 6..10

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

    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

    gulp.task("build-lib", () => {
        return gulp.src(paths.source.lib)
            .pipe(babel())
            .pipe(gulp.dest(paths.build.directories.lib));
    });
    Severity: Major
    Found in tasks/build-lib.js and 1 other location - About 2 hrs to fix
    tasks/build-spec.js on lines 6..10

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

    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(() => {
                            clientController.after(clientController.update, clientController[shredResponse]);
                            clientController.after(clientController.delete, clientController[shredResponse]);
                            clientController.after(clientController.delete, clientController[logResponse]);
                        });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 1 other location - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 360..364

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

    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(() => {
                                clientController.before(clientController.update, clientController[authenticate]);
                                clientController.before(clientController.delete, clientController[authenticate]);
                                clientController.before(clientController.delete, clientController[logRequest]);
                            });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 1 other location - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 492..496

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

    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 set a filter method to be called after a specific action in the order they were added", done => {
                            logResponseSpy = sinon.spy(() => {
                                sinon.assert.callOrder(deleteSpy, shredResponseSpy, logResponseSpy);
                                done();
                            });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 1 other location - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 466..473

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

    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 call a filter after create action in the order they were added", done => {
                                shredResponseSpy = sinon.spy(() => {
                                    sinon.assert.callOrder(createSpy, logResponseSpy, shredResponseSpy);
                                    done();
                                });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 1 other location - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 498..504

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

    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

                    it("should set a filter method to be called after the specified action", done => {
                        logResponseSpy = sinon.spy(() => {
                            sinon.assert.callOrder(updateSpy, logResponseSpy);
                            done();
                        });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 5 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 434..441
    es6/spec/forbin.spec.js on lines 443..449
    es6/spec/forbin.spec.js on lines 451..457
    es6/spec/forbin.spec.js on lines 513..519
    es6/spec/forbin.spec.js on lines 521..527

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

    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

                    it("should set a filter method to be called after the delete action provided in the array", done => {
                        logResponseSpy = sinon.spy(() => {
                            sinon.assert.callOrder(updateSpy, logResponseSpy);
                            done();
                        });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 5 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 434..441
    es6/spec/forbin.spec.js on lines 443..449
    es6/spec/forbin.spec.js on lines 451..457
    es6/spec/forbin.spec.js on lines 483..489
    es6/spec/forbin.spec.js on lines 513..519

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

    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

                        it("should call a filter method after update", done => {
                            logResponseSpy = sinon.spy(() => {
                                sinon.assert.callOrder(updateSpy, logResponseSpy);
                                done();
                            });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 5 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 434..441
    es6/spec/forbin.spec.js on lines 451..457
    es6/spec/forbin.spec.js on lines 483..489
    es6/spec/forbin.spec.js on lines 513..519
    es6/spec/forbin.spec.js on lines 521..527

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

    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

                        it("should call a filter method after create", done => {
                            logResponseSpy = sinon.spy(() => {
                                sinon.assert.callOrder(createSpy, logResponseSpy);
                                done();
                            });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 5 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 443..449
    es6/spec/forbin.spec.js on lines 451..457
    es6/spec/forbin.spec.js on lines 483..489
    es6/spec/forbin.spec.js on lines 513..519
    es6/spec/forbin.spec.js on lines 521..527

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

    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

                        it("should call a filter method after delete", done => {
                            logResponseSpy = sinon.spy(() => {
                                sinon.assert.callOrder(deleteSpy, logResponseSpy);
                                done();
                            });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 5 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 434..441
    es6/spec/forbin.spec.js on lines 443..449
    es6/spec/forbin.spec.js on lines 483..489
    es6/spec/forbin.spec.js on lines 513..519
    es6/spec/forbin.spec.js on lines 521..527

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

    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

                    it("should set a filter method to be called after the delete action provided in the array", done => {
                        logResponseSpy = sinon.spy(() => {
                            sinon.assert.callOrder(deleteSpy, logResponseSpy);
                            done();
                        });
    Severity: Major
    Found in es6/spec/forbin.spec.js and 5 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 434..441
    es6/spec/forbin.spec.js on lines 443..449
    es6/spec/forbin.spec.js on lines 451..457
    es6/spec/forbin.spec.js on lines 483..489
    es6/spec/forbin.spec.js on lines 521..527

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

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

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

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

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

    Refactorings

    Further Reading

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

                            it("should call a filter before create action in the order they were added", done => {
                                mockResponse = {
                                    end: () => {
                                        sinon.assert.callOrder(
                                            logRequestSpy,
    Severity: Major
    Found in es6/spec/forbin.spec.js and 3 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 300..312
    es6/spec/forbin.spec.js on lines 314..326
    es6/spec/forbin.spec.js on lines 366..377

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

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

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

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

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

    Refactorings

    Further Reading

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

                            it("should call a filter before delete action in the order they were added", done => {
                                mockResponse = {
                                    end: () => {
                                        sinon.assert.callOrder(
                                            logRequestSpy,
    Severity: Major
    Found in es6/spec/forbin.spec.js and 3 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 286..298
    es6/spec/forbin.spec.js on lines 300..312
    es6/spec/forbin.spec.js on lines 366..377

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

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

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

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

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

    Refactorings

    Further Reading

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

                            it("should call a filter before update action in the order they were added", done => {
                                mockResponse = {
                                    end: () => {
                                        sinon.assert.callOrder(
                                            logRequestSpy,
    Severity: Major
    Found in es6/spec/forbin.spec.js and 3 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 286..298
    es6/spec/forbin.spec.js on lines 314..326
    es6/spec/forbin.spec.js on lines 366..377

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

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

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

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

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

    Refactorings

    Further Reading

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

                            it("should set a filter method to be called before delete in the order they were added", done => {
                                mockResponse = {
                                    end: () => {
                                        sinon.assert.callOrder(
                                            authenticateSpy,
    Severity: Major
    Found in es6/spec/forbin.spec.js and 3 other locations - About 1 hr to fix
    es6/spec/forbin.spec.js on lines 286..298
    es6/spec/forbin.spec.js on lines 300..312
    es6/spec/forbin.spec.js on lines 314..326

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

    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

    Severity
    Category
    Status
    Source
    Language