catdad/grandma

View on GitHub
lib/report-text.js

Summary

Maintainability
A
2 hrs
Test Coverage
A
96%

Function stringifier has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var stringifier = function(opts) {
    function colorString(str, color) {
        if (opts.color) {
            return chalk[color](str);
        }
Severity: Minor
Found in lib/report-text.js - About 1 hr to fix

    Function exports has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(jsonSummary, opts) {
        var durationStr = 'NaN';
    
        var stringify = stringifier(_.isPlainObject(opts) ? opts : {});
    
    
    Severity: Minor
    Found in lib/report-text.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status