okunishinishi/node-colorprint

View on GitHub
lib/msg/format_msg.js

Summary

Maintainability
A
1 hr
Test Coverage

Function formatMsg has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function formatMsg (msg) {
  const s = this
  msg = Array.prototype.slice.call(arguments, 0).map(msg => {
    if (typeof(msg) === 'object') {
      try {
Severity: Minor
Found in lib/msg/format_msg.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status