print({ fixes, results }) {
    if (!fixes) {
      fixes = {};
    }
    const data = _.mapValues(results, (modules, type) =>
      _.map(modules, function(module) {
        const fixed = _.includes(fixes[type], module.name);
        const error = errorMessages[module.error];
        return _.assign({}, module, { error, fixed });
      })
    );
    return this.stream.write(JSON.stringify(data, null, 2), 'utf8');
  }
// Prints the result to its stream
Prints the result to its stream
Prints the result to its stream
print({ fixes, results }) {
    if (!fixes) {
      fixes = {};
    }
    const data = _.mapValues(results, (modules, type) =>
      _.map(modules, function(module) {
        const fixed = _.includes(fixes[type], module.name);
        const error = errorMessages[module.error];
        return _.assign({}, module, { error, fixed });
      })
    );
    return this.stream.write(JSON.stringify(data, null, 2), 'utf8');
  }
print ( { fixes , results } ) { if ( ! fixes ) { fixes = { } ; } const data = _ . mapValues ( results , ( modules , type ) => _ . map ( modules , function ( module ) { const fixed = _ . includes ( fixes [ type ] , module . name ) ; const error = errorMessages [ module . error ] ; return _ . assign ( { } , module , { error , fixed } ) ; } ) ) ; return this . stream . write ( JSON . stringify ( data , null , 2 ) , 'utf8' ) ; }
Prints the result to its stream
Prints the result to its stream