server/lib/mailer.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

function setupTransporter() {
  if (get('mailgun:enabled')) {
    const mailgun = require('nodemailer-mailgun-transport'); // Slow module to require
    const mailgunAuth = {
      auth: {
Severity: Minor
Found in server/lib/mailer.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status