haraka/haraka-plugin-syslog

View on GitHub
index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function syslog has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.syslog = function (next, logger, log) {
  const plugin = this;

  switch (log.level.toUpperCase()) {
    case 'INFO':
Severity: Minor
Found in index.js - About 1 hr to fix

    Function register has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.register = function () {
      const plugin = this;
    
      let options = 0;
    
    
    Severity: Minor
    Found in index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status