phodal/diaonan

View on GitHub
app/controllers/http_api.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

module.exports = function (app) {
    var Data, io;
    io = app.io;
    Data = app.models.Data;
    app.get(/^\/topics\/(.+)$/, function (req, res) {
Severity: Major
Found in app/controllers/http_api.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

                    return res.send(data.value);
    Severity: Major
    Found in app/controllers/http_api.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                      return res.send(406);
      Severity: Major
      Found in app/controllers/http_api.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status