phodal/diaonan

View on GitHub
app/controllers/coap_api.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

module.exports = function (app) {
    var Data;
    var _      = require("underscore");

    Data = app.models.Data;
Severity: Major
Found in app/controllers/coap_api.js - About 3 hrs to fix

    Function handPost has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            var handPost = function () {
                function parse_buffer(req) {
                    'use strict';
                    var results, block =[];
                    var payload = req.payload.toString();
    Severity: Minor
    Found in app/controllers/coap_api.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status