BohemiaInteractive/bi-service

View on GitHub
lib/express/app.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function $init has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

App.prototype.$init = function() {

    var self = this;
    this.expressApp.locals.getUrl = function getUrl(uid, pathParams, queryParams) {
        return self.getRoute(uid).getUrl(pathParams, queryParams);
Severity: Minor
Found in lib/express/app.js - About 1 hr to fix

    Function listen has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    App.prototype.listen = function() {
        var args = Array.prototype.slice.call(arguments, 0, 3);
        var app = this;
        var options = {
            ssl: false,
    Severity: Minor
    Found in lib/express/app.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status