erizo-fr/erizo-mail-server

View on GitHub
lib/services/messageService.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getMessages has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getMessages(imapConnection, boxName, ids, seqs, options, callback) {
    logger.info('Getting messages by seqs#' + seqs + ' or ids#' + ids + ' in box#' + boxName + ' with options ' + JSON.stringify(options));
    if (ids && seqs || (!ids && !seqs)) { 
        callback(new Error('Either ids or seqs must be defined'), null);
        return;
Severity: Minor
Found in lib/services/messageService.js - About 1 hr to fix

    Function getMessages has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function getMessages(imapConnection, boxName, ids, seqs, options, callback) {
    Severity: Minor
    Found in lib/services/messageService.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status