msimerson/Haraka

View on GitHub
plugins/queue/rabbitmq.js

Summary

Maintainability
B
5 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (config.rabbitmq) {
        options.host = config.rabbitmq.server_ip || '127.0.0.1';
        options.port = config.rabbitmq.server_port || '5672';
        options.login = config.rabbitmq.user || 'guest';
        options.password = config.rabbitmq.password || 'guest';
Severity: Critical
Found in plugins/queue/rabbitmq.js - About 2 hrs to fix

    Function init_rabbitmq_server has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.init_rabbitmq_server = function () {
        // this is called during init of rabbitmq
    
        //Read the config file rabbitmq
        const config     = this.config.get('rabbitmq.ini');
    Severity: Major
    Found in plugins/queue/rabbitmq.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status