okunishinishi/node-colorprint

View on GitHub

Showing 2 of 2 total issues

prototype has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

Colorprint.prototype = {
  disabled: false,
  prepareMsg () {
    const msg = formatMsg.apply(formatMsg, arguments)
    return [this.PREFIX, indentMsg(msg, this.indent), this.SUFFIX].join('')
Severity: Minor
Found in lib/colorprint.js - About 2 hrs to fix

    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
      Severity
      Category
      Status
      Source
      Language