kunagpal/express-boilerplate

View on GitHub
app.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function exports has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (done) {
    mongodb.connect(process.env.MONGO_URI || `mongodb://127.0.0.1:27017/${_.kebabCase(name)}${env ? '-' + env : ''}`,
        { w: 1 }, function (mongoError, db) {
            if (mongoError) { throw mongoError; }

Severity: Major
Found in app.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status