lib/report-text.js
Function stringifier
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var stringifier = function(opts) {
function colorString(str, color) {
if (opts.color) {
return chalk[color](str);
}
Function exports
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(jsonSummary, opts) {
var durationStr = 'NaN';
var stringify = stringifier(_.isPlainObject(opts) ? opts : {});