pinclub/pinclub

View on GitHub
proxy/reply.js

Summary

Maintainability
A
1 hr
Test Coverage

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

exports.getRepliesByTopicId = function (id, cb) {
  Reply.find({topic: id, deleted: false}, '', {sort: 'create_at'}).populate('author').exec(function (err, replies) {
    if (err) {
      return cb(err);
    }
Severity: Minor
Found in proxy/reply.js - About 1 hr to fix

    Function newAndSave has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    exports.newAndSave = function (content, topicId, authorId, replyId, callback) {
    Severity: Minor
    Found in proxy/reply.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status