Showing 2 of 2 total issues
prototype
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
Colorprint.prototype = {
disabled: false,
prepareMsg () {
const msg = formatMsg.apply(formatMsg, arguments)
return [this.PREFIX, indentMsg(msg, this.indent), this.SUFFIX].join('')
Function formatMsg
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatMsg (msg) {
const s = this
msg = Array.prototype.slice.call(arguments, 0).map(msg => {
if (typeof(msg) === 'object') {
try {