philippebeck/nens

View on GitHub
controller/OrderCtrl.js

Summary

Maintainability
A
1 hr
Test Coverage

Function setMessage has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.setMessage = (total, paymentId, products) => {
  const { CURRENCY_SYMBOL, ORDER_LIST, ORDER_NAME, ORDER_PAYMENT, ORDER_PRICE, ORDER_QUANTITY, ORDER_SUBJECT, ORDER_TITLE, ORDER_TOTAL } = process.env;

  let message = {};
  message.subject = ORDER_SUBJECT;
Severity: Minor
Found in controller/OrderCtrl.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status