enhancv/mongoose-originals

View on GitHub
src/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function mongooseOriginals has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function mongooseOriginals(schema, userOptions) {
    var options = Object.assign({ methods: true }, userOptions);

    if (!options.fields) {
        throw new Error("No fields specified for mongoose originals on schema");
Severity: Major
Found in src/index.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status